Add missing brackets around parameters in method definitions
This commit is contained in:
parent
9e19c78b48
commit
2fa88a432b
34 changed files with 64 additions and 64 deletions
|
@ -19,7 +19,7 @@ class BuildDefaultPreferenceListDossier < ActiveRecord::Migration
|
|||
end
|
||||
end
|
||||
|
||||
def valid_couple_table_attr? table, column
|
||||
def valid_couple_table_attr?(table, column)
|
||||
couples = [
|
||||
{
|
||||
table: :dossier,
|
||||
|
@ -110,7 +110,7 @@ class BuildDefaultPreferenceListDossier < ActiveRecord::Migration
|
|||
}
|
||||
end
|
||||
|
||||
def self.create_column libelle, table, attr, attr_decorate, bootstrap_lg
|
||||
def self.create_column(libelle, table, attr, attr_decorate, bootstrap_lg)
|
||||
{
|
||||
libelle: libelle,
|
||||
table: table,
|
||||
|
|
|
@ -3,7 +3,7 @@ class ResetAllPreferenceListDossier < ActiveRecord::Migration
|
|||
belongs_to :gestionnaire
|
||||
belongs_to :procedure
|
||||
|
||||
def self.available_columns_for procedure_id = nil
|
||||
def self.available_columns_for(procedure_id = nil)
|
||||
columns = {
|
||||
dossier: columns_dossier,
|
||||
procedure: columns_procedure,
|
||||
|
@ -78,7 +78,7 @@ class ResetAllPreferenceListDossier < ActiveRecord::Migration
|
|||
}
|
||||
end
|
||||
|
||||
def self.create_column libelle, table, attr, attr_decorate, bootstrap_lg
|
||||
def self.create_column(libelle, table, attr, attr_decorate, bootstrap_lg)
|
||||
{
|
||||
libelle: libelle,
|
||||
table: table,
|
||||
|
@ -95,7 +95,7 @@ class ResetAllPreferenceListDossier < ActiveRecord::Migration
|
|||
has_many :assign_to, dependent: :destroy
|
||||
has_many :procedures, through: :assign_to
|
||||
|
||||
def build_default_preferences_list_dossier procedure_id = nil
|
||||
def build_default_preferences_list_dossier(procedure_id = nil)
|
||||
PreferenceListDossier.available_columns_for(procedure_id).each do |table|
|
||||
table.second.each do |column|
|
||||
if valid_couple_table_attr? table.first, column.first
|
||||
|
@ -117,7 +117,7 @@ class ResetAllPreferenceListDossier < ActiveRecord::Migration
|
|||
|
||||
private
|
||||
|
||||
def valid_couple_table_attr? table, column
|
||||
def valid_couple_table_attr?(table, column)
|
||||
couples = [
|
||||
{
|
||||
table: :dossier,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue