Module: ActiveRecordPermissions::Permissions::ClassMethods

Defined in:
lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_record_permissions.rb

Instance Method Summary collapse

Instance Method Details

#authorized_for?(*args) ⇒ Boolean

Class level just delegates to instance level

Returns:

  • (Boolean)


116
117
118
119
# File 'lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_record_permissions.rb', line 116

def authorized_for?(*args)
  @authorized_for_delegatee ||= self.new
  @authorized_for_delegatee.authorized_for?(*args)
end