Sha256: bc81e97f5f6a1ce786b997c314bfe9a982c0c267814873e339f7a38c07906940

Contents?: true

Size: 413 Bytes

Versions: 2

Compression:

Stored size: 413 Bytes

Contents

module Pulitzer
  class ArrangementStyle < ActiveRecord::Base
    belongs_to :post_type_version
    has_many :partials
    validates :display_name, presence: true
    validates :view_file_name, presence: true

    def clone_me
      clone_attrs = self.attributes.dup
      clone_attrs.delete 'id'
      clone_attrs.delete 'post_type_version_id'
      Pulitzer::ArrangementStyle.new(clone_attrs)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pulitzer-0.15.12 app/models/pulitzer/arrangement_style.rb
pulitzer-0.15.11 app/models/pulitzer/arrangement_style.rb