Sha256: 93c458021467246cb2adde5b9cc98c1197de093e29b81ce4cd2425a652628b3b

Contents?: true

Size: 376 Bytes

Versions: 2

Compression:

Stored size: 376 Bytes

Contents

require 'hario'

class Brand < ActiveRecord::Base
  extend Hario::Filterable

  has_many :products
end

class Product < ActiveRecord::Base
  extend Hario::Filterable

  hario_attributes [:filters, :pluck], except: :hidden_column

  belongs_to :brand
  belongs_to :category, class_name: "ProductCategory"
end

class ProductCategory < ActiveRecord::Base
  has_many :products
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hario-0.3.2 test/models.rb
hario-0.3.1 test/models.rb