Sha256: 991978498f1462446acbc7379fb635746b357188e5761375e00f255f40637d06

Contents?: true

Size: 212 Bytes

Versions: 10

Compression:

Stored size: 212 Bytes

Contents

module Permits::Roles
  def self.available
    if Module.const_defined? :User
      [:guest, :admin]
      #User.defined_roles if User.respond_to? :defined_roles
    else
      [:guest, :admin]
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
cancan-permits-0.3.2 lib/cancan-permits/permits/roles.rb
cancan-permits-0.3.1 lib/cancan-permits/permits/roles.rb
cancan-permits-0.3.0 lib/cancan-permits/permits/roles.rb
cancan-permits-0.2.9 lib/cancan-permits/permits/roles.rb
cancan-permits-0.2.8 lib/cancan-permits/permits/roles.rb
cancan-permits-0.2.7 lib/cancan-permits/permits/roles.rb
cancan-permits-0.2.5 lib/cancan-permits/permits/roles.rb
cancan-permits-0.2.3 lib/cancan-permits/permits/roles.rb
cancan-permits-0.2.2 lib/cancan-permits/permits/roles.rb
cancan-permits-0.2.1 lib/cancan-permits/permits/roles.rb