Sha256: b7a1b8ff5f6265f36a2ce833d171c6fdb3facf7f61b2566b84c114b3a70b295f

Contents?: true

Size: 721 Bytes

Versions: 4

Compression:

Stored size: 721 Bytes

Contents

class Assignment < ActiveRecord::Base
  acts_as_authorization_assignment
end

class Role < ActiveRecord::Base
  acts_as_authorization_role
end

class User < ActiveRecord::Base
  acts_as_authorization_subject
  
  def to_s
    name
  end
end

class UserNoGroup < ActiveRecord::Base
  acts_as_authorization_subject :groups_enabled => false, :nested_groups => false

  def to_s
    name
  end
end

class Group < ActiveRecord::Base
  acts_as_authorization_group
  
  def to_s
    name
  end
end

class Foo < ActiveRecord::Base
  acts_as_authorization_object
end

class Bar < ActiveRecord::Base
  acts_as_authorization_object
end

class Uuid < ActiveRecord::Base
  set_primary_key "uuid"  
  acts_as_authorization_object
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
id_please-0.8.0 test/support/models.rb
id_please-0.7.0 test/support/models.rb
id_please-0.6.0 test/support/models.rb
id_please-0.5.0 test/support/models.rb