Commit
098a2def06d22b6604a7d698e030ce0bcfee35dc
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
*Block: remove unecessary editable? methods
The superclass methos alteady returns true anyway.
|
| @@ -85,8 +85,4 @@ class FeedReaderBlock < Block |
| @@ -85,8 +85,4 @@ class FeedReaderBlock < Block |
|
85
| block_title(title) + formatted_feed_content |
85
| block_title(title) + formatted_feed_content |
|
86
| end |
86
| end |
|
87
| |
87
| |
|
88
| - def editable? |
| |
|
89
| - true |
| |
|
90
| - end |
| |
|
91
| - |
| |
|
92
| end |
88
| end |
|
| @@ -84,10 +84,6 @@ class LinkListBlock < Block |
| @@ -84,10 +84,6 @@ class LinkListBlock < Block |
|
84
| end |
84
| end |
|
85
| end |
85
| end |
|
86
| |
86
| |
|
87
| - def editable? |
| |
|
88
| - true |
| |
|
89
| - end |
| |
|
90
| - |
| |
|
91
| def icons_options |
87
| def icons_options |
|
92
| ICONS.map do |i| |
88
| ICONS.map do |i| |
|
93
| "<span title=\"#{i[1]}\" class=\"icon-#{i[0]}\" onclick=\"changeIcon(this, '#{i[0]}')\"></span>".html_safe |
89
| "<span title=\"#{i[1]}\" class=\"icon-#{i[0]}\" onclick=\"changeIcon(this, '#{i[0]}')\"></span>".html_safe |
|
| @@ -16,10 +16,6 @@ class MainBlock < Block |
| @@ -16,10 +16,6 @@ class MainBlock < Block |
|
16
| true |
16
| true |
|
17
| end |
17
| end |
|
18
| |
18
| |
|
19
| - def editable? |
| |
|
20
| - true |
| |
|
21
| - end |
| |
|
22
| - |
| |
|
23
| def cacheable? |
19
| def cacheable? |
|
24
| false |
20
| false |
|
25
| end |
21
| end |
|
| @@ -23,10 +23,6 @@ class ProfileImageBlock < Block |
| @@ -23,10 +23,6 @@ class ProfileImageBlock < Block |
|
23
| end |
23
| end |
|
24
| end |
24
| end |
|
25
| |
25
| |
|
26
| - def editable? |
| |
|
27
| - true |
| |
|
28
| - end |
| |
|
29
| - |
| |
|
30
| def cacheable? |
26
| def cacheable? |
|
31
| false |
27
| false |
|
32
| end |
28
| end |
|
| @@ -11,8 +11,4 @@ class ProfileSearchBlock < Block |
| @@ -11,8 +11,4 @@ class ProfileSearchBlock < Block |
|
11
| end |
11
| end |
|
12
| end |
12
| end |
|
13
| |
13
| |
|
14
| - def editable? |
| |
|
15
| - true |
| |
|
16
| - end |
| |
|
17
| - |
| |
|
18
| end |
14
| end |