Skip to content

Commit

Permalink
Don’t load translation value if text isn’t present.
Browse files Browse the repository at this point in the history
  • Loading branch information
Craig Davey committed Apr 22, 2010
1 parent c6dba76 commit cbf7003
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/tolk/translation.rb
Expand Up @@ -31,7 +31,7 @@ def text=(value)
end

def value
YAML.load text
YAML.load text if text
end

private
Expand Down

0 comments on commit cbf7003

Please sign in to comment.