Class: VendorCategoryDecorator
- Inherits:
-
VendorsDecorator
- Object
- BaseDecorator
- VendorsDecorator
- VendorCategoryDecorator
- Defined in:
- app/decorators/vendor_category_decorator.rb
Instance Method Summary collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class VendorsDecorator
Instance Method Details
#as_json(opts = {}) ⇒ Object
4 5 6 7 8 9 |
# File 'app/decorators/vendor_category_decorator.rb', line 4 def as_json(opts = {}) { :id => self.id, :name => self.name } end |