Class: Mention

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/generators/govkit/templates/mention.rb

Overview

A model to contain mentions of the :owner in the media

Instance Method Summary collapse

Instance Method Details

#as_json(opts = {}) ⇒ Object

Returns the mentions in JSON form

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