cortex-cms/cortex

View on GitHub
app/models/cortex/decorator.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Cortex
  class Decorator < Cortex::ApplicationRecord
    include Cortex::BelongsToTenant

    has_many :contentable_decorators

    validates :name, :data, presence: true

    def data
      self[:data].deep_symbolize_keys
    end
  end
end