Merge pull request #1692 from riyad/saner-note-methods

Small Note code cleanup
This commit is contained in:
Dmitriy Zaporozhets 2012-10-15 10:11:00 -07:00
commit e84d90c1e7
7 changed files with 39 additions and 18 deletions

View file

@ -36,4 +36,12 @@ module StaticModel
def destroyed?
false
end
def ==(other)
if other.is_a? StaticModel
id == other.id
else
super
end
end
end