Module: Objectify::Rails::Helpers
- Defined in:
- lib/objectify/rails/helpers.rb
Instance Method Summary collapse
Instance Method Details
#objectify_data ⇒ Object
4 5 6 7 |
# File 'lib/objectify/rails/helpers.rb', line 4 def objectify_data @_objectify_data || raise(ArgumentError, "No data was passed to this view.") end |
#policy_allowed?(policy_name) ⇒ Boolean
9 10 11 |
# File 'lib/objectify/rails/helpers.rb', line 9 def policy_allowed?(policy_name) objectify_executor.call(policy_name, :policy) end |