spec/support/models.rb in rolify-0.4.0 vs spec/support/models.rb in rolify-0.5.0
- old
+ new
@@ -1,12 +1,13 @@
class User < ActiveRecord::Base
has_and_belongs_to_many :roles, :join_table => :users_roles
- include Rolify
+ include Rolify::Roles
+ extend Rolify::Reloaded
end
class Role < ActiveRecord::Base
has_and_belongs_to_many :users, :join_table => :users_roles
belongs_to :resource, :polymorphic => true
end
class Forum < ActiveRecord::Base
-end
\ No newline at end of file
+end