DEV: Apply syntax_tree formatting to lib/*

This commit is contained in:
David Taylor
2023-01-09 12:10:19 +00:00
parent b0fda61a8e
commit 6417173082
507 changed files with 16550 additions and 12627 deletions

View File

@@ -17,16 +17,16 @@ module ScreeningModel
end
end
included do
before_validation :set_default_action
end
included { before_validation :set_default_action }
def set_default_action
self.action_type ||= self.class.actions[self.class.df_action]
end
def action_name=(arg)
raise ArgumentError.new("Invalid action type #{arg}") if arg.nil? || !self.class.actions.has_key?(arg.to_sym)
if arg.nil? || !self.class.actions.has_key?(arg.to_sym)
raise ArgumentError.new("Invalid action type #{arg}")
end
self.action_type = self.class.actions[arg.to_sym]
end