Skip to content

Commit

Permalink
Ruby2.0.0ではValueがStringでないと保存されない
Browse files Browse the repository at this point in the history
  • Loading branch information
sanemat committed Jan 3, 2013
1 parent 3841c94 commit 8a61496
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/lokka/option.rb
Expand Up @@ -14,7 +14,7 @@ def self.method_missing(method, *args)
if attribute =~ /=$/
column = attribute[0, attribute.size - 1]
o = self.first_or_new(:name => column)
o.value = args.first
o.value = args.first.to_s
o.save
else
o = self.first_or_new(:name => method.to_s)
Expand Down

0 comments on commit 8a61496

Please sign in to comment.