Sha256: 08e8956d131ade7777ba538840165e3cfe5c54240dd5e32213b9f41f6ebd7a71

Contents?: true

Size: 175 Bytes

Versions: 10

Compression:

Stored size: 175 Bytes

Contents

class VendorCategoryDecorator < VendorsDecorator
  decorates :vendor_category

  def as_json(opts = {})
    {
      :id   => self.id,
      :name => self.name
    }
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
e9_vendors-0.0.10 app/decorators/vendor_category_decorator.rb
e9_vendors-0.0.9 app/decorators/vendor_category_decorator.rb
e9_vendors-0.0.8 app/decorators/vendor_category_decorator.rb
e9_vendors-0.0.7 app/decorators/vendor_category_decorator.rb
e9_vendors-0.0.6 app/decorators/vendor_category_decorator.rb
e9_vendors-0.0.5 app/decorators/vendor_category_decorator.rb
e9_vendors-0.0.4 app/decorators/vendor_category_decorator.rb
e9_vendors-0.0.3 app/decorators/vendor_category_decorator.rb
e9_vendors-0.0.2 app/decorators/vendor_category_decorator.rb
e9_vendors-0.0.1 app/decorators/vendor_category_decorator.rb