Method: Underworld::ApplicationPolicy#method_missing

Defined in:
app/policies/underworld/application_policy.rb

#method_missing(m, *args, &block_given) ⇒ Object



28
29
30
31
# File 'app/policies/underworld/application_policy.rb', line 28

def method_missing(m, *args, &block_given)
  return authorize? m.to_s[0..-2] if m.to_s =~ /.*\?$/
  super
end