Class: CanHasPermission::Role
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- CanHasPermission::Role
- Defined in:
- lib/can-has-permission/role.rb
Instance Method Summary collapse
Instance Method Details
#can?(permission) ⇒ Boolean
9 10 11 12 |
# File 'lib/can-has-permission/role.rb', line 9 def can?() return true if (!self..select{|p| p.name == .to_s}.empty?) false end |