Sha256: 75f2daf3e6f733863476623987faa6cf9b180b827d617cabebff2f53ecc16003

Contents?: true

Size: 347 Bytes

Versions: 6

Compression:

Stored size: 347 Bytes

Contents

module Basepack
  module Forms
    class Show < Forms::Base
      def default_partial
        'forms/show'
      end

      def render_field!(field)
        if field.partial_show.present?
          view.render field.partial_show, form: self, field: field
        else
          view.form_field_show(field)
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
basepack-1.0.1 lib/basepack/forms/show.rb
basepack-1.0.0 lib/basepack/forms/show.rb
basepack-1.0.0.pre.0 lib/basepack/forms/show.rb
basepack-0.2.0 lib/basepack/forms/show.rb
basepack-0.1.0 lib/basepack/forms/show.rb
basepack-0.0.2 lib/basepack/forms/show.rb