Sha256: fdf4f0de94edde18bcc169e45533c379a54f1fb9061e2067f374389f049a304f
Contents?: true
Size: 266 Bytes
Versions: 2
Compression:
Stored size: 266 Bytes
Contents
class Tag < Resource attributes :name def path "/tags/#{@id}" end def setup_associations has_many :topics, :url => "#{path}/topics" has_many :companies, :url => "#{path}/companies" has_many :products, :url => "#{path}/products" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ruby-satisfaction-0.2.0 | lib/satisfaction/tag.rb |
ruby-satisfaction-0.1.0 | lib/satisfaction/tag.rb |