Commit
30c9ba4d3e141881c2d41da239711623370f36cb
Exists in
master
and in
27 other branches
1.2+SPB2, 2_split_by_role, add_fields_in_api, api_fixies, api_pagination, api_private_token, api_tasks, article_hit_count, blog_page_bug, checkbox_to_user_can_edit_page, communities_ratings, communities_ratings_moderation, community_ratings_rebase, fix_cloned_article_parent, fix_gallery_image_url, fix_javascript_categories, fix_optional_fields, fix_suggest_article, fix_user_email_validation, highlight_block_fix, notification_plugin, notification_plugin_rebase, script_to_update, split_by_role, temp_ratings, tests, tests_fixies
Fix CommunitiesBlock unit tests
1
| class CommunitiesBlock < ProfileListBlock |
1
| class CommunitiesBlock < ProfileListBlock |
2
| |
2
| |
| |
3
| + attr_accessible :accessor_id, :accessor_type, :role_id, :resource_id, :resource_type |
| |
4
| + |
3
| def self.description |
5
| def self.description |
4
| _('Communities') |
6
| _('Communities') |
5
| end |
7
| end |
1
| class Community < Organization |
1
| class Community < Organization |
2
| |
2
| |
| |
3
| + attr_accessible :accessor_id, :accessor_type, :role_id, :resource_id, :resource_type |
3
| def self.type_name |
4
| def self.type_name |
4
| _('Community') |
5
| _('Community') |
5
| end |
6
| end |
1
| class RoleAssignment < ActiveRecord::Base |
1
| class RoleAssignment < ActiveRecord::Base |
| |
2
| + |
| |
3
| + attr_accessible :accessor_id, :accessor_type, :role_id, :resource_id, :resource_type |
| |
4
| + |
2
| belongs_to :role |
5
| belongs_to :role |
3
| belongs_to :accessor, :polymorphic => true |
6
| belongs_to :accessor, :polymorphic => true |
4
| belongs_to :resource, :polymorphic => true |
7
| belongs_to :resource, :polymorphic => true |
1
| module ActionTracker |
1
| module ActionTracker |
2
| class Record < ActiveRecord::Base |
2
| class Record < ActiveRecord::Base |
| |
3
| + attr_accessible :verb, :params, :user, :target |
3
| |
4
| |
4
| set_table_name 'action_tracker' |
5
| set_table_name 'action_tracker' |
5
| |
6
| |