Sha256: 6807e43bf2af31242e0bfdab9701e2581b62df3e33db15d1b1fba804e281a1b1
Contents?: true
Size: 393 Bytes
Versions: 4
Compression:
Stored size: 393 Bytes
Contents
class Sfn::Product < Sfn::Resource attributes :name, :url, :image, :description attribute :last_active_at, :type => Time attribute :created_at, :type => Time def setup_associations has_many :topics, :url => "#{path}/topics" has_many :people, :url => "#{path}/people" has_many :companies, :url => "#{path}/companies" has_many :tags, :url => "#{path}/tags" end end
Version data entries
4 entries across 4 versions & 1 rubygems