Module: HasStrongPolicy::ControllerHelper::ClassMethods

Defined in:
lib/has_strong_policy/controller_helper.rb

Instance Method Summary collapse

Instance Method Details

#has_strong_policy(options = {}) ⇒ Object



9
10
11
12
# File 'lib/has_strong_policy/controller_helper.rb', line 9

def has_strong_policy(options = {})
  include HasStrongPolicy::ControllerHelper::HasHasStrongPolicy
  @_policy_class = options[:using]
end