Sha256: 746250cf98797bad5cb06070dc40794d4d4a4c4341e66c8023a52587afc52c2e

Contents?: true

Size: 226 Bytes

Versions: 47

Compression:

Stored size: 226 Bytes

Contents

module Pulitzer
  class Layout < ActiveRecord::Base
    has_many :partials
    belongs_to :post_type
    validates :name, presence: true

    def template_path
      name.downcase.gsub(/ /,'_').gsub(/\W/,'')
    end
  end
end

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
pulitzer-0.13.1 app/models/pulitzer/layout.rb
pulitzer-0.12.5 app/models/pulitzer/layout.rb
pulitzer-0.13.0 app/models/pulitzer/layout.rb
pulitzer-0.12.4 app/models/pulitzer/layout.rb
pulitzer-0.12.3 app/models/pulitzer/layout.rb
pulitzer-0.12.2 app/models/pulitzer/layout.rb
pulitzer-0.12.1 app/models/pulitzer/layout.rb
pulitzer-0.12.0 app/models/pulitzer/layout.rb
pulitzer-0.11.3 app/models/pulitzer/layout.rb
pulitzer-0.11.2 app/models/pulitzer/layout.rb
pulitzer-0.11.1 app/models/pulitzer/layout.rb
pulitzer-0.11.0 app/models/pulitzer/layout.rb
pulitzer-0.10.3 app/models/pulitzer/layout.rb
pulitzer-0.10.2 app/models/pulitzer/layout.rb
pulitzer-0.10.1 app/models/pulitzer/layout.rb
pulitzer-0.10.0 app/models/pulitzer/layout.rb
pulitzer-0.5.14 app/models/pulitzer/layout.rb
pulitzer-0.5.13 app/models/pulitzer/layout.rb
pulitzer-0.5.11 app/models/pulitzer/layout.rb
pulitzer-0.5.10 app/models/pulitzer/layout.rb