Sha256: 6609c4feb6c148277468c983cde18e9f5928a3ec5312c413cd848a82446036be

Contents?: true

Size: 317 Bytes

Versions: 8

Compression:

Stored size: 317 Bytes

Contents

require 'orange/carton'

module Orange
  # Defines a carton that belongs to a specific site.
  # (Subclasses should be sure to call super if they override init, since
  # it is what defines the relationship)
  class SiteCarton < Carton
    def self.init
      belongs_to :orange_site, 'Orange::Site'
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
orange-0.0.13 lib/orange/cartons/site_carton.rb
orange-0.0.12 lib/orange/cartons/site_carton.rb
orange-0.0.10 lib/orange/cartons/site_carton.rb
orange-0.0.8 lib/orange/cartons/site_carton.rb
orange-0.0.7 lib/orange/cartons/site_carton.rb
orange-0.0.6 lib/orange/cartons/site_carton.rb
orange-0.0.5 lib/orange/cartons/site_carton.rb
orange-0.0.4 lib/orange/cartons/site_carton.rb