Sha256: 96a8d05ecbe43b3992aa53436f7209544c013e715cdf19a33cbaa6f24e910cda

Contents?: true

Size: 294 Bytes

Versions: 6

Compression:

Stored size: 294 Bytes

Contents

class Content < ApplicationRecord
  self.abstract_class = true

  include Syncable
  include WithDescription
  include WithLocale
  include WithSlug
  include WithUsages
  include WithName

  def to_resource_h
    as_json(only: [:name, :slug, :description, :locale]).symbolize_keys
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mumuki-domain-6.4.1 app/models/content.rb
mumuki-domain-6.4.0 app/models/content.rb
mumuki-domain-6.2.2 app/models/content.rb
mumuki-domain-6.2.1 app/models/content.rb
mumuki-domain-6.3.0 app/models/content.rb
mumuki-domain-6.2.0 app/models/content.rb