Sha256: 4347bd3e85534e35f95817dd614faea526feae08c40e359bc0884a23ec248508

Contents?: true

Size: 558 Bytes

Versions: 93

Compression:

Stored size: 558 Bytes

Contents

module Tenon
  module TenonContent
    module RowTypes
      class Base
        class << self
          attr_accessor :partial, :form_partial

          def partial
            filename = name.demodulize.underscore
            File.join(partial_path, 'display', filename)
          end

          def form_partial
            filename = name.demodulize.underscore
            File.join(partial_path, 'form', filename)
          end

          def partial_path
            'tenon/tenon_content/row_types'
          end
        end
      end
    end
  end
end

Version data entries

93 entries across 93 versions & 1 rubygems

Version Path
tenon-1.1.8 app/models/tenon/tenon_content/row_types/base.rb
tenon-1.1.7 app/models/tenon/tenon_content/row_types/base.rb
tenon-1.1.6 app/models/tenon/tenon_content/row_types/base.rb
tenon-2.1.0 app/models/tenon/tenon_content/row_types/base.rb
tenon-2.0.8 app/models/tenon/tenon_content/row_types/base.rb
tenon-2.0.7 app/models/tenon/tenon_content/row_types/base.rb
tenon-2.0.6 app/models/tenon/tenon_content/row_types/base.rb
tenon-2.0.5 app/models/tenon/tenon_content/row_types/base.rb
tenon-2.0.4 app/models/tenon/tenon_content/row_types/base.rb
tenon-2.0.3 app/models/tenon/tenon_content/row_types/base.rb
tenon-2.0.2 app/models/tenon/tenon_content/row_types/base.rb
tenon-2.0.1 app/models/tenon/tenon_content/row_types/base.rb
tenon-2.0.0 app/models/tenon/tenon_content/row_types/base.rb
tenon-1.1.5 app/models/tenon/tenon_content/row_types/base.rb
tenon-1.1.4 app/models/tenon/tenon_content/row_types/base.rb
tenon-1.1.3 app/models/tenon/tenon_content/row_types/base.rb
tenon-1.1.2 app/models/tenon/tenon_content/row_types/base.rb
tenon-1.1.1 app/models/tenon/tenon_content/row_types/base.rb
tenon-1.0.76 app/models/tenon/tenon_content/row_types/base.rb
tenon-1.0.75 app/models/tenon/tenon_content/row_types/base.rb