Skip to content

Commit

Permalink
Remove whitespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
lifo committed Apr 27, 2010
1 parent 446c882 commit b34a42a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/models/tolk/translation.rb
Expand Up @@ -33,11 +33,11 @@ def primary_translation
end
end
end

def text=(value)
super unless value.to_s == text
end

def value
if text.is_a?(String) && /^\d+$/.match(text)
text.to_i
Expand All @@ -56,12 +56,12 @@ def fix_text_type
rescue ArgumentError
nil
end

end

self.text = nil if primary_translation.text.class != self.text.class
end

true
end

Expand Down

0 comments on commit b34a42a

Please sign in to comment.