spec/support/models.rb in rolify-0.5.1 vs spec/support/models.rb in rolify-0.6.0

- old
+ new

@@ -9,5 +9,17 @@ belongs_to :resource, :polymorphic => true end class Forum < ActiveRecord::Base end + +class Customer < ActiveRecord::Base + has_and_belongs_to_many :roles, :join_table => :customers_privileges, :class_name => "Privilege" + include Rolify::Roles + extend Rolify::Reloaded +end + +class Privilege < ActiveRecord::Base + has_and_belongs_to_many :customers, :join_table => :customers_privileges + belongs_to :resource, :polymorphic => true +end +