diff --git a/app/assets/javascripts/embed_video.js.coffee b/app/assets/javascripts/embed_video.js.coffee index 85c18ac8e..0825d1b80 100644 --- a/app/assets/javascripts/embed_video.js.coffee +++ b/app/assets/javascripts/embed_video.js.coffee @@ -1,7 +1,6 @@ App.EmbedVideo = - + initialize: -> $('#js-embedded-video').each -> - code = $(this).data("video-code") + code = $(this).data("video-code") $('#js-embedded-video').html(code) - \ No newline at end of file diff --git a/app/controllers/admin/budget_investment_milestones_controller.rb b/app/controllers/admin/budget_investment_milestones_controller.rb index a4b8acc5d..fb5f42384 100644 --- a/app/controllers/admin/budget_investment_milestones_controller.rb +++ b/app/controllers/admin/budget_investment_milestones_controller.rb @@ -48,7 +48,7 @@ class Admin::BudgetInvestmentMilestonesController < Admin::BaseController end def load_budget_investment_milestone - @milestone = Budget::Investment::Milestone.find params[:id] + @milestone = Budget::Investment::Milestone.find params[:id] end diff --git a/app/controllers/management/sessions_controller.rb b/app/controllers/management/sessions_controller.rb index 85ed59eae..6db303a39 100644 --- a/app/controllers/management/sessions_controller.rb +++ b/app/controllers/management/sessions_controller.rb @@ -20,7 +20,7 @@ class Management::SessionsController < ActionController::Base def destroy_session session[:manager] = nil - session[:document_type] = nil + session[:document_type] = nil session[:document_number] = nil end diff --git a/app/models/concerns/communitable.rb b/app/models/concerns/communitable.rb index 6f0a10f43..415a7a3f0 100644 --- a/app/models/concerns/communitable.rb +++ b/app/models/concerns/communitable.rb @@ -7,8 +7,8 @@ module Communitable end def associate_community - community = Community.create - self.community_id = community.id + community = Community.create + self.community_id = community.id end end diff --git a/app/views/admin/site_customization/pages/index.html.erb b/app/views/admin/site_customization/pages/index.html.erb index dd9cfd3ad..897549caf 100644 --- a/app/views/admin/site_customization/pages/index.html.erb +++ b/app/views/admin/site_customization/pages/index.html.erb @@ -34,7 +34,7 @@ <% if page.status == "published" %> <%= link_to t("admin.site_customization.pages.index.see_page"), page.url, target: "_blank" %> <% else %> - <%= t("admin.site_customization.pages.index.see_page") %> + <%= t("admin.site_customization.pages.index.see_page") %> <% end %> diff --git a/app/views/polls/_poll_group.html.erb b/app/views/polls/_poll_group.html.erb index 6e0b85f16..e3e5c5976 100644 --- a/app/views/polls/_poll_group.html.erb +++ b/app/views/polls/_poll_group.html.erb @@ -64,7 +64,7 @@ <% if poll.expired? %> <%= t("polls.index.participate_button_expired") %> <% elsif poll.incoming? %> - <%= t("polls.index.participate_button_incoming") %> + <%= t("polls.index.participate_button_incoming") %> <% else %> <%= t("polls.index.participate_button") %> <% end %> diff --git a/db/seeds.rb b/db/seeds.rb index 41b995f8a..96916f29a 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -39,10 +39,10 @@ Setting["months_to_archive_proposals"] = 12 Setting["email_domain_for_officials"] = '' # Code to be included at the top (inside ) of every page (useful for tracking) -Setting['per_page_code_head'] = '' +Setting['per_page_code_head'] = '' # Code to be included at the top (inside ) of every page -Setting['per_page_code_body'] = '' +Setting['per_page_code_body'] = '' # Social settings Setting["twitter_handle"] = nil diff --git a/lib/tasks/communities.rake b/lib/tasks/communities.rake index ad08e4bd9..261f4dbee 100644 --- a/lib/tasks/communities.rake +++ b/lib/tasks/communities.rake @@ -5,14 +5,14 @@ namespace :communities do Proposal.all.each do |proposal| if proposal.community.blank? - community = Community.create + community = Community.create proposal.update(community_id: community.id) end end Budget::Investment.all.each do |investment| if investment.community.blank? - community = Community.create + community = Community.create investment.update(community_id: community.id) end end diff --git a/spec/features/communities_spec.rb b/spec/features/communities_spec.rb index 4772df24b..2909f416e 100644 --- a/spec/features/communities_spec.rb +++ b/spec/features/communities_spec.rb @@ -15,7 +15,7 @@ feature 'Communities' do scenario 'Should display default content' do proposal = create(:proposal) community = proposal.community - user = create(:user) + user = create(:user) login_as(user) visit community_path(community) @@ -103,7 +103,7 @@ feature 'Communities' do scenario 'Should display topic edit button when author is logged' do proposal = create(:proposal) community = proposal.community - user = create(:user) + user = create(:user) topic1 = create(:topic, community: community, author: user) topic2 = create(:topic, community: community) login_as(user) diff --git a/spec/features/topics_specs.rb b/spec/features/topics_specs.rb index 9970e2339..0ba674844 100644 --- a/spec/features/topics_specs.rb +++ b/spec/features/topics_specs.rb @@ -16,7 +16,7 @@ feature 'Topics' do scenario 'Can access to new topic page with user logged', :js do proposal = create(:proposal) community = proposal.community - user = create(:user) + user = create(:user) login_as(user) visit community_path(community) @@ -28,7 +28,7 @@ feature 'Topics' do scenario 'Should have content on new topic page', :js do proposal = create(:proposal) community = proposal.community - user = create(:user) + user = create(:user) login_as(user) visit community_path(community) @@ -78,7 +78,7 @@ feature 'Topics' do scenario 'Can edit a topic' do proposal = create(:proposal) community = proposal.community - user = create(:user) + user = create(:user) topic = create(:topic, community: community, author: user) login_as(user) visit edit_community_topic_path(community, topic) @@ -95,7 +95,7 @@ feature 'Topics' do proposal = create(:proposal) community = proposal.community topic = create(:topic, community: community) - user = create(:user) + user = create(:user) login_as(user) visit edit_community_topic_path(community, topic) @@ -125,7 +125,7 @@ feature 'Topics' do scenario 'Can destroy a topic' do proposal = create(:proposal) community = proposal.community - user = create(:user) + user = create(:user) topic = create(:topic, community: community, author: user) login_as(user) visit community_path(community) @@ -141,7 +141,7 @@ feature 'Topics' do proposal = create(:proposal) community = proposal.community topic = create(:topic, community: community) - user = create(:user) + user = create(:user) login_as(user) visit community_path(community) diff --git a/spec/features/users_spec.rb b/spec/features/users_spec.rb index bd2aefa17..ae2bac6d1 100644 --- a/spec/features/users_spec.rb +++ b/spec/features/users_spec.rb @@ -235,7 +235,7 @@ feature 'Users' do end scenario 'Not display interests when proposal has been destroyed' do - proposal = create(:proposal, tag_list: "Sport") + proposal = create(:proposal, tag_list: "Sport") create(:follow, :followed_proposal, followable: proposal, user: @user) proposal.destroy diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb index 6db1a2a25..3d4217ea3 100644 --- a/spec/models/user_spec.rb +++ b/spec/models/user_spec.rb @@ -668,8 +668,8 @@ describe User do end it "should discard followed objects duplicated tags" do - proposal1 = create(:proposal, tag_list: "Sport") - proposal2 = create(:proposal, tag_list: "Sport") + proposal1 = create(:proposal, tag_list: "Sport") + proposal2 = create(:proposal, tag_list: "Sport") budget_investment = create(:budget_investment, tag_list: "Sport") create(:follow, followable: proposal1, user: user) diff --git a/vendor/assets/javascripts/annotator.js b/vendor/assets/javascripts/annotator.js index b9019a6b2..dfbc0a0bf 100644 --- a/vendor/assets/javascripts/annotator.js +++ b/vendor/assets/javascripts/annotator.js @@ -2054,7 +2054,7 @@ setDocument = Sizzle.setDocument = function( node ) { // getElementById is not reliable as a find shortcut delete Expr.find["ID"]; - Expr.filter["ID"] = function( id ) { + Expr.filter["ID"] = function( id ) { var attrId = id.replace( runescape, funescape ); return function( elem ) { var node = typeof elem.getAttributeNode !== "undefined" && elem.getAttributeNode("id");