Sha256: a26846e44f222849f144700360182d2f66126cf6e315f7a22b78b1cbc37b93d4

Contents?: true

Size: 308 Bytes

Versions: 23

Compression:

Stored size: 308 Bytes

Contents

module TypeStation
  module Concerns
    module Templatable
      extend ActiveSupport::Concern

      included do
        field :template_name, type: String, default: 'undefined'
      end

      def template_name?
        template_name.present? && template_name != 'undefined'
      end

    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
type_station-0.7.0 lib/type_station/concerns/templatable.rb
type_station-0.6.0 lib/type_station/concerns/templatable.rb
type_station-0.5.4 lib/type_station/concerns/templatable.rb
type_station-0.5.3 lib/type_station/concerns/templatable.rb
type_station-0.5.2 lib/type_station/concerns/templatable.rb
type_station-0.5.1 lib/type_station/concerns/templatable.rb
type_station-0.4.7 lib/type_station/concerns/templatable.rb
type_station-0.4.6 lib/type_station/concerns/templatable.rb
type_station-0.4.5 lib/type_station/concerns/templatable.rb
type_station-0.4.4 lib/type_station/concerns/templatable.rb
type_station-0.4.3 lib/type_station/concerns/templatable.rb
type_station-0.4.2 lib/type_station/concerns/templatable.rb
type_station-0.4.1 lib/type_station/concerns/templatable.rb
type_station-0.4.0 lib/type_station/concerns/templatable.rb
type_station-0.3.4 lib/type_station/concerns/templatable.rb
type_station-0.3.3 lib/type_station/concerns/templatable.rb
type_station-0.3.2 lib/type_station/concerns/templatable.rb
type_station-0.3.1 lib/type_station/concerns/templatable.rb
type_station-0.3.0 lib/type_station/concerns/templatable.rb
type_station-0.2.3 lib/type_station/concerns/templatable.rb