frozen_string_literal removed

frozen_string_literal magic comment has been removed until a decission
is taken regarding to its convenience.
This commit is contained in:
Juan Salvador Pérez García
2018-06-22 15:11:06 +02:00
parent 690cdd9b48
commit 8bb3d5b3ab
13 changed files with 0 additions and 25 deletions

View File

@@ -1,5 +1,3 @@
# frozen_string_literal: true
class Admin::ProposalDashboardActionsController < Admin::BaseController
helper_method :proposal_dashboard_action

View File

@@ -1,6 +1,3 @@
# frozen_string_literal: true
# Proposals dashboard
class ProposalsDashboardController < ApplicationController
before_action :authenticate_user!

View File

@@ -1,5 +1,3 @@
# frozen_string_literal: true
module Admin::ProposalDashboardActionsHelper
def active_human_readable(active)
return t('admin.proposal_dashboard_actions.index.active') if active

View File

@@ -1,5 +1,3 @@
# frozen_string_literal: true
class AdministratorTask < ActiveRecord::Base
belongs_to :source, polymorphic: true
belongs_to :user

View File

@@ -1,5 +1,3 @@
# frozen_string_literal: true
class ProposalDashboardAction < ActiveRecord::Base
acts_as_paranoid column: :hidden_at
include ActsAsParanoidAliases

View File

@@ -1,5 +1,3 @@
# frozen_string_literal: true
class ProposalExecutedDashboardAction < ActiveRecord::Base
belongs_to :proposal
belongs_to :proposal_dashboard_action

View File

@@ -4,8 +4,6 @@ begin
rescue LoadError => e
raise unless e.message.include?('spring')
end
# frozen_string_literal: true
#
# This file was generated by Bundler.
#
# The application 'rspec' is installed as part of a gem, and

View File

@@ -1,5 +1,3 @@
# frozen_string_literal: true
class CreateProposalDashboardActions < ActiveRecord::Migration
def change
create_table :proposal_dashboard_actions do |t|

View File

@@ -1,5 +1,3 @@
# frozen_string_literal: true
class AddActionTypeToProposalDashboardActions < ActiveRecord::Migration
def change
add_column :proposal_dashboard_actions, :action_type, :integer, null: false, default: 0

View File

@@ -1,5 +1,3 @@
# frozen_string_literal: true
require 'rails_helper'
describe 'Administrator tasks' do

View File

@@ -1,5 +1,3 @@
# frozen_string_literal: true
require 'rails_helper'
describe Admin::ProposalDashboardActionsHelper do

View File

@@ -1,4 +1,3 @@
# frozen_string_literal: true
require 'rails_helper'
describe ProposalDashboardAction do

View File

@@ -1,4 +1,3 @@
# frozen_string_literal: true
require 'rails_helper'
describe ProposalExecutedDashboardAction do