Module: Model::PolicyClass

Defined in:
lib/resourcify/model/policy_class.rb

Instance Method Summary collapse

Instance Method Details

#policy_classObject



3
4
5
6
7
# File 'lib/resourcify/model/policy_class.rb', line 3

def policy_class
  _p = "#{self.name}Policy" and _p.constantize and return _p
rescue
  "ApiPolicy"
end