Commit 30c9ba4d3e141881c2d41da239711623370f36cb

Authored by Leandro Santos
1 parent 685d4964

Fix CommunitiesBlock unit tests

app/models/communities_block.rb
1 1 class CommunitiesBlock < ProfileListBlock
2 2  
  3 + attr_accessible :accessor_id, :accessor_type, :role_id, :resource_id, :resource_type
  4 +
3 5 def self.description
4 6 _('Communities')
5 7 end
... ...
app/models/community.rb
1 1 class Community < Organization
2 2  
  3 + attr_accessible :accessor_id, :accessor_type, :role_id, :resource_id, :resource_type
3 4 def self.type_name
4 5 _('Community')
5 6 end
... ...
vendor/plugins/access_control/lib/role_assignment.rb
1 1 class RoleAssignment < ActiveRecord::Base
  2 +
  3 + attr_accessible :accessor_id, :accessor_type, :role_id, :resource_id, :resource_type
  4 +
2 5 belongs_to :role
3 6 belongs_to :accessor, :polymorphic => true
4 7 belongs_to :resource, :polymorphic => true
... ...
vendor/plugins/action_tracker/lib/action_tracker_model.rb
1 1 module ActionTracker
2 2 class Record < ActiveRecord::Base
  3 + attr_accessible :verb, :params, :user, :target
3 4  
4 5 set_table_name 'action_tracker'
5 6  
... ...