Method: Kublog::Category#as_json
- Defined in:
- app/models/kublog/category.rb
#as_json(params = {}) ⇒ Object
Includes a path to the category by default helps reference back to edited categories in json requests
22 23 24 25 |
# File 'app/models/kublog/category.rb', line 22 def as_json(params={}) params||={} super(params.merge!({:methods => [:path]})) end |