Class: Mention
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Mention
- Defined in:
- lib/generators/govkit/templates/mention.rb
Overview
A model to contain mentions of the :owner in the media
Instance Method Summary collapse
-
#as_json(opts = {}) ⇒ Object
Returns the mentions in JSON form.
Instance Method Details
#as_json(opts = {}) ⇒ Object
Returns the mentions in JSON form
11 12 13 14 |
# File 'lib/generators/govkit/templates/mention.rb', line 11 def as_json(opts = {}) default_opts = {:except => [:owner_id, :owner_type]} super(default_opts.merge(opts)) end |