Module: Publishable::ClassMethods

Defined in:
backend/app/model/mixins/publishable.rb

Instance Method Summary collapse

Instance Method Details

#create_from_json(json, opts = {}) ⇒ Object



21
22
23
24
# File 'backend/app/model/mixins/publishable.rb', line 21

def create_from_json(json, opts = {})
  json['publish'] = Preference.defaults['publish'] if json['publish'].nil?
  super
end