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
|
||||
helper_method :proposal_dashboard_action
|
||||
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
# Proposals dashboard
|
||||
class ProposalsDashboardController < ApplicationController
|
||||
before_action :authenticate_user!
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class AdministratorTask < ActiveRecord::Base
|
||||
belongs_to :source, polymorphic: true
|
||||
belongs_to :user
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class ProposalDashboardAction < ActiveRecord::Base
|
||||
acts_as_paranoid column: :hidden_at
|
||||
include ActsAsParanoidAliases
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class ProposalExecutedDashboardAction < ActiveRecord::Base
|
||||
belongs_to :proposal
|
||||
belongs_to :proposal_dashboard_action
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class CreateProposalDashboardActions < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :proposal_dashboard_actions do |t|
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require 'rails_helper'
|
||||
|
||||
describe 'Administrator tasks' do
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require 'rails_helper'
|
||||
|
||||
describe Admin::ProposalDashboardActionsHelper do
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
# frozen_string_literal: true
|
||||
require 'rails_helper'
|
||||
|
||||
describe ProposalDashboardAction do
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
# frozen_string_literal: true
|
||||
require 'rails_helper'
|
||||
|
||||
describe ProposalExecutedDashboardAction do
|
||||
|
||||
Reference in New Issue
Block a user