Sha256: 957de00ef6a2bfc89d8d608590a9bb92c3014488d0b5884c44f91465a599d02b
Contents?: true
Size: 341 Bytes
Versions: 5
Compression:
Stored size: 341 Bytes
Contents
module Highrise class Tag < Base def ==(object) (object.instance_of?(self.class) && object.id == self.id && object.name == self.name) end # You can't find :one because that finds all *objects* with that tag def self.find_by_name(arg) tags = self.find(:all).detect{|tag| tag.name == arg} end end end
Version data entries
5 entries across 5 versions & 2 rubygems