Module: ActsAsPermission::Permitted

Defined in:
lib/acts_as_permission.rb

Instance Method Summary collapse

Instance Method Details

#permitted?(object, route) ⇒ Boolean

Returns:

  • (Boolean)


77
78
79
# File 'lib/acts_as_permission.rb', line 77

def permitted?(object, route)
  object.permission?(route, self)
end