Sha256: 50dd2e38fab5e4adb5ab745339b002e6dc7f9dc7e0d5c5f74053f8eecb5bbfb0
Contents?: true
Size: 1.21 KB
Versions: 6
Compression:
Stored size: 1.21 KB
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 module Other class Other::User < ActiveRecord::Base set_table_name "other_users" acts_as_authorization_subject :join_table_name => "other_roles_other_users", :role_class_name => "Other::Role" end class Other::Role < ActiveRecord::Base set_table_name "other_roles" acts_as_authorization_role :join_table_name => "other_roles_other_users", :subject_class_name => "Other::User" end class Other::FooBar < ActiveRecord::Base set_table_name "other_foo_bars" acts_as_authorization_object :role_class_name => 'Other::Role', :subject_class_name => "Other::User" end end
Version data entries
6 entries across 6 versions & 5 rubygems