Commit
30c9ba4d3e141881c2d41da239711623370f36cb
Exists in
master
and in
29 other branches
add_member_task_reject_details, admin_visible_profile, article-list-template, community_notifications, contact_admin_translation, event_fixes, fix_comments_pagination, fix_rails4_organization_ratings, fix_sign_up_form, follow_step_fix, forum_topic_creation, mirror_block_improvements, multi_env_on_remote_user, new_security, noosfero_spb_ci, organization_ratings_improvements, organization_ratings_link_to_profile_stable-spb-1.3, organization_ratings_translations_fix, profile_api_improvements, ratings_minor_fixes, remote_user_fix, send_email_to_admins, stable-spb-1.3, stable-spb-1.3-fixes, stable-spb-1.4, stable-spb-1.5, suggest_rejected_value, web_steps_improvements, xss_terminate_custom_options
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
| |