Sha256: 83e8beb110c55d397779af6e6d0ea91cdf746c37ba977feba7ac314ccc08b75e

Contents?: true

Size: 282 Bytes

Versions: 18

Compression:

Stored size: 282 Bytes

Contents

module Pulitzer
  class Style < ActiveRecord::Base
    has_many :content_elements
    belongs_to :post_type_content_element_type
    validates :display_name, :css_class_name, presence: true

    def first?
      post_type_content_element_type.first_style.id == id
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
pulitzer-0.15.12 app/models/pulitzer/style.rb
pulitzer-0.15.11 app/models/pulitzer/style.rb
pulitzer-0.15.10 app/models/pulitzer/style.rb
pulitzer-0.15.9 app/models/pulitzer/style.rb
pulitzer-0.15.8 app/models/pulitzer/style.rb
pulitzer-0.15.7 app/models/pulitzer/style.rb
pulitzer-0.15.6 app/models/pulitzer/style.rb
pulitzer-0.15.5 app/models/pulitzer/style.rb
pulitzer-0.15.4 app/models/pulitzer/style.rb
pulitzer-0.15.3 app/models/pulitzer/style.rb
pulitzer-0.15.2 app/models/pulitzer/style.rb
pulitzer-0.15.1 app/models/pulitzer/style.rb
pulitzer-0.15.0 app/models/pulitzer/style.rb
pulitzer-0.14.4 app/models/pulitzer/style.rb
pulitzer-0.14.3 app/models/pulitzer/style.rb
pulitzer-0.14.2 app/models/pulitzer/style.rb
pulitzer-0.14.1 app/models/pulitzer/style.rb
pulitzer-0.14.0 app/models/pulitzer/style.rb