-
-
Save nilcolor/3017752 to your computer and use it in GitHub Desktop.
Code styles
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def catch22 | |
model = Model.create!(:field1 => product_row[:part_number], | |
:field2 => product_row[:element_name], | |
:field3 => product_row[:pattern_value], | |
:field4 => product_row[:fixed_dp], | |
:field5 => product_row[:franchise_name], | |
:field6 => product_row[:product_code], | |
:field7 => (product_row[:volume].to_i == 0 ? nil : product_row[:volume]), | |
:field8 => product_row[:package_quantity]) | |
# other code... | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def catch22 | |
model = Model.create!( | |
:field1 => product_row[:part_number], | |
:field2 => product_row[:element_name], | |
:field3 => product_row[:pattern_value], | |
:field4 => product_row[:fixed_dp], | |
:field5 => product_row[:franchise_name], | |
:field6 => product_row[:product_code], | |
:field7 => (product_row[:volume].to_i == 0 ? nil : product_row[:volume]), | |
:field8 => product_row[:package_quantity] | |
) | |
# other code... | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment