Created
August 7, 2012 23:30
-
-
Save johnny2k/3290534 to your computer and use it in GitHub Desktop.
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
new_action.before do | |
if SystemSetting[:default_specifications] | |
SystemSetting[:default_specifications].value.split(',').each do |specname| | |
object.specifications.build({:name => specname, :value => ''}) | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment