Commit
dd0ff2c9aae8e1293c9b685c2798a39a10695393
Exists in
staging
and in
26 other branches
angular_poc, api-article-archived, api-homepage, api_visitor, article-readonly, caching-rails4, captcha_serpro_plugin, comment_paragraph_api, comments_api_reply, content-manager-hostspot, environment-api, export-comment-paragraph, fix_event_date_issue, fix_multitenancy, fix_profile_wall, fix_string_downcase_and_upcase, fix_upload_files_on_development_environment, json_cookie_serializer, login-captcha, master, new_security, new_video_plugin, pg_search_rank, production, resend_confirmation_email, tasks_keep_filter_params
Move vote extension from plugin to core
1
| require 'noosfero/role_assignment_ext' |
1
| require 'noosfero/role_assignment_ext' |
2
| require 'noosfero/action_tracker_ext' |
2
| require 'noosfero/action_tracker_ext' |
| |
3
| +require 'noosfero/vote_ext' |
| @@ -0,0 +1,7 @@ |
| @@ -0,0 +1,7 @@ |
| |
1
| +require_dependency 'models/vote' |
| |
2
| + |
| |
3
| +class Vote |
| |
4
| + |
| |
5
| + validates_uniqueness_of :voteable_id, :scope => [:voteable_type, :voter_type, :voter_id] |
| |
6
| + |
| |
7
| +end |
| @@ -1,7 +0,0 @@ |
| @@ -1,7 +0,0 @@ |
1
| -require_dependency 'models/vote' |
| |
2
| - |
| |
3
| -class Vote |
| |
4
| - |
| |
5
| - validates_uniqueness_of :voteable_id, :scope => [:voteable_type, :voter_type, :voter_id] |
| |
6
| - |
| |
7
| -end |
| |