Sha256: e51d02c224111b21229571a9cc687447ca3087c2a3558412bbe6f60fcbf6a601

Contents?: true

Size: 639 Bytes

Versions: 5

Compression:

Stored size: 639 Bytes

Contents

class Role < ActiveRecord::Base
  acts_as_authorization_role
end

class User < ActiveRecord::Base
  acts_as_authorization_subject
end

class Foo < ActiveRecord::Base
  acts_as_authorization_object
end

class Bar < ActiveRecord::Base
  acts_as_authorization_object
end

class AnotherSubject < ActiveRecord::Base
  acts_as_authorization_subject :role_class_name => 'AnotherRole'
end

class AnotherRole < ActiveRecord::Base
  acts_as_authorization_role :subject_class_name => "AnotherSubject"
end

class FooBar < ActiveRecord::Base
  acts_as_authorization_object :role_class_name => 'AnotherRole', :subject_class_name => "AnotherSubject"
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
be9-acl9-0.10.0 test/support/models.rb
be9-acl9-0.9.1 spec/models.rb
be9-acl9-0.9.2 spec/models.rb
be9-acl9-0.9.3 spec/models.rb
be9-acl9-0.9.4 spec/models.rb