Permalink
Browse files

Make sure the Config singleton is always in a saved state.(cherry pic…

…ked from commit 58549c56625b92b6c96ac1daeee57e121ceace1b)
  • Loading branch information...
1 parent 1ca9fea commit 7df4703484eb9bb689ccaeb9bff840fcdd3d48b2 @hmans committed Apr 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/schnitzelpress/config.rb
@@ -24,7 +24,7 @@ class Config
class << self
def instance
- @@instance ||= find_or_initialize_by(:id => 'schnitzelpress')
+ @@instance ||= find_or_create_by(:id => 'schnitzelpress')
end
def get(k)

0 comments on commit 7df4703

Please sign in to comment.