Sha256: b788ae79056e5357ab45e12f170a7f07da318c4743e403f2f50373cc60f8aa20

Contents?: true

Size: 167 Bytes

Versions: 2

Compression:

Stored size: 167 Bytes

Contents

class User
  attr_accessor :login, :roles
  
  def initialize; reset end
  def reset; @login, @roles = '', [] end
  def has_role?(role); @roles.include?(role) end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
jrun-rails_doorman-0.0.1 spec/fixtures/app/app/models/user.rb
rails-doorman-0.1.0 spec/fixtures/app/app/models/user.rb