Sha256: 8dded1b2680c9e23a54d6882c6458a7892e333d9acdacd72aaf8de05fa92da5d

Contents?: true

Size: 486 Bytes

Versions: 19

Compression:

Stored size: 486 Bytes

Contents

module Pulitzer
  class JustificationStyle < Pulitzer::ApplicationRecord
    belongs_to :post_type_version
    has_many :partials
    validates :display_name, presence: true
    validates :css_class_name, presence: true

    def self.export_config
      {except: :id}
    end
    
    def clone_me
      clone_attrs = self.attributes.dup
      clone_attrs.delete 'id'
      clone_attrs.delete 'post_type_version_id'
      Pulitzer::JustificationStyle.new(clone_attrs)
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
pulitzer-0.15.31 app/models/pulitzer/justification_style.rb
pulitzer-0.15.30 app/models/pulitzer/justification_style.rb
pulitzer-0.15.29 app/models/pulitzer/justification_style.rb
pulitzer-0.15.28 app/models/pulitzer/justification_style.rb
pulitzer-0.15.27 app/models/pulitzer/justification_style.rb
pulitzer-0.15.26 app/models/pulitzer/justification_style.rb
pulitzer-0.15.25 app/models/pulitzer/justification_style.rb
pulitzer-0.15.24 app/models/pulitzer/justification_style.rb
pulitzer-0.15.23 app/models/pulitzer/justification_style.rb
pulitzer-0.15.22 app/models/pulitzer/justification_style.rb
pulitzer-0.15.21 app/models/pulitzer/justification_style.rb
pulitzer-0.15.20 app/models/pulitzer/justification_style.rb
pulitzer-0.15.19 app/models/pulitzer/justification_style.rb
pulitzer-0.15.18 app/models/pulitzer/justification_style.rb
pulitzer-0.15.17 app/models/pulitzer/justification_style.rb
pulitzer-0.15.16 app/models/pulitzer/justification_style.rb
pulitzer-0.15.15 app/models/pulitzer/justification_style.rb
pulitzer-0.15.14 app/models/pulitzer/justification_style.rb
pulitzer-0.15.13 app/models/pulitzer/justification_style.rb