was breaking the API (tests are coming)
This commit is contained in:
parent
39bb85d163
commit
67c36191d2
@ -10,10 +10,14 @@ module Locomotive
|
|||||||
end
|
end
|
||||||
|
|
||||||
def options
|
def options
|
||||||
|
current_site = self.controller.send(:current_site)
|
||||||
|
current_account = self.controller.send(:current_locomotive_account)
|
||||||
|
ability = current_account.nil? ? nil : self.controller.send(:current_ability)
|
||||||
|
|
||||||
super.merge({
|
super.merge({
|
||||||
:current_site => self.controller.send(:current_site),
|
:current_site => current_site,
|
||||||
:current_account => self.controller.send(:current_locomotive_account),
|
:current_account => current_account,
|
||||||
:ability => self.controller.send(:current_ability)
|
:ability => ability
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user