Module: Opera::AdMarvel::Reportable::ClassMethods
- Defined in:
- lib/opera/ad_marvel/models/reportable.rb
Instance Method Summary collapse
- #create(given_attributes = {}) ⇒ Object (also: #report)
Instance Method Details
#create(given_attributes = {}) ⇒ Object Also known as: report
41 42 43 44 45 |
# File 'lib/opera/ad_marvel/models/reportable.rb', line 41 def create(given_attributes = {}) reportable = self.new given_attributes reportable.save reportable end |