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:
@@ -1,5 +1,3 @@
|
|||||||
# frozen_string_literal: true
|
|
||||||
|
|
||||||
class Admin::ProposalDashboardActionsController < Admin::BaseController
|
class Admin::ProposalDashboardActionsController < Admin::BaseController
|
||||||
helper_method :proposal_dashboard_action
|
helper_method :proposal_dashboard_action
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,3 @@
|
|||||||
# frozen_string_literal: true
|
|
||||||
|
|
||||||
# Proposals dashboard
|
|
||||||
class ProposalsDashboardController < ApplicationController
|
class ProposalsDashboardController < ApplicationController
|
||||||
before_action :authenticate_user!
|
before_action :authenticate_user!
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
# frozen_string_literal: true
|
|
||||||
|
|
||||||
module Admin::ProposalDashboardActionsHelper
|
module Admin::ProposalDashboardActionsHelper
|
||||||
def active_human_readable(active)
|
def active_human_readable(active)
|
||||||
return t('admin.proposal_dashboard_actions.index.active') if active
|
return t('admin.proposal_dashboard_actions.index.active') if active
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
# frozen_string_literal: true
|
|
||||||
|
|
||||||
class AdministratorTask < ActiveRecord::Base
|
class AdministratorTask < ActiveRecord::Base
|
||||||
belongs_to :source, polymorphic: true
|
belongs_to :source, polymorphic: true
|
||||||
belongs_to :user
|
belongs_to :user
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
# frozen_string_literal: true
|
|
||||||
|
|
||||||
class ProposalDashboardAction < ActiveRecord::Base
|
class ProposalDashboardAction < ActiveRecord::Base
|
||||||
acts_as_paranoid column: :hidden_at
|
acts_as_paranoid column: :hidden_at
|
||||||
include ActsAsParanoidAliases
|
include ActsAsParanoidAliases
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
# frozen_string_literal: true
|
|
||||||
|
|
||||||
class ProposalExecutedDashboardAction < ActiveRecord::Base
|
class ProposalExecutedDashboardAction < ActiveRecord::Base
|
||||||
belongs_to :proposal
|
belongs_to :proposal
|
||||||
belongs_to :proposal_dashboard_action
|
belongs_to :proposal_dashboard_action
|
||||||
|
|||||||
@@ -4,8 +4,6 @@ begin
|
|||||||
rescue LoadError => e
|
rescue LoadError => e
|
||||||
raise unless e.message.include?('spring')
|
raise unless e.message.include?('spring')
|
||||||
end
|
end
|
||||||
# frozen_string_literal: true
|
|
||||||
#
|
|
||||||
# This file was generated by Bundler.
|
# This file was generated by Bundler.
|
||||||
#
|
#
|
||||||
# The application 'rspec' is installed as part of a gem, and
|
# The application 'rspec' is installed as part of a gem, and
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
# frozen_string_literal: true
|
|
||||||
|
|
||||||
class CreateProposalDashboardActions < ActiveRecord::Migration
|
class CreateProposalDashboardActions < ActiveRecord::Migration
|
||||||
def change
|
def change
|
||||||
create_table :proposal_dashboard_actions do |t|
|
create_table :proposal_dashboard_actions do |t|
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
# frozen_string_literal: true
|
|
||||||
|
|
||||||
class AddActionTypeToProposalDashboardActions < ActiveRecord::Migration
|
class AddActionTypeToProposalDashboardActions < ActiveRecord::Migration
|
||||||
def change
|
def change
|
||||||
add_column :proposal_dashboard_actions, :action_type, :integer, null: false, default: 0
|
add_column :proposal_dashboard_actions, :action_type, :integer, null: false, default: 0
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
# frozen_string_literal: true
|
|
||||||
|
|
||||||
require 'rails_helper'
|
require 'rails_helper'
|
||||||
|
|
||||||
describe 'Administrator tasks' do
|
describe 'Administrator tasks' do
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
# frozen_string_literal: true
|
|
||||||
|
|
||||||
require 'rails_helper'
|
require 'rails_helper'
|
||||||
|
|
||||||
describe Admin::ProposalDashboardActionsHelper do
|
describe Admin::ProposalDashboardActionsHelper do
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
# frozen_string_literal: true
|
|
||||||
require 'rails_helper'
|
require 'rails_helper'
|
||||||
|
|
||||||
describe ProposalDashboardAction do
|
describe ProposalDashboardAction do
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
# frozen_string_literal: true
|
|
||||||
require 'rails_helper'
|
require 'rails_helper'
|
||||||
|
|
||||||
describe ProposalExecutedDashboardAction do
|
describe ProposalExecutedDashboardAction do
|
||||||
|
|||||||
Reference in New Issue
Block a user