Sha256: 2ae2e56e7f74a23d6138d54a3f3027b199c1800ca9799977f34eaa04bfac6e20
Contents?: true
Size: 387 Bytes
Versions: 6
Compression:
Stored size: 387 Bytes
Contents
module Highrise class Tag < Base @@tags = {} def ==(object) (object.instance_of?(self.class) && object.id == self.id && object.name == self.name) end def self.find_by_name(arg) if @@tags == {} self.find(:all).each do |tag| @@tags[tag.id] = tag @@tags[tag.name] = tag end end @@tags[arg] end end end
Version data entries
6 entries across 6 versions & 3 rubygems