Sha256: 0ed2190b9815d2456764ca47fc603793d7fb9211fac70bc37b8e6789dde41531

Contents?: true

Size: 382 Bytes

Versions: 2

Compression:

Stored size: 382 Bytes

Contents

module ExtForm
  module Wrappers
    module SingleMixin
      extend ActiveSupport::Concern
      include Mixin

      included do
        def render_with_layout(input)
          wrap_style_options(input, @defaults[:layout], namespace) if @defaults[:layout]
          render_without_layout(input)
        end

        alias_method_chain :render, :layout
      end

    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ext_form-0.1.5 lib/ext_form/wrappers/single_mixin.rb
ext_form-0.1.4 lib/ext_form/wrappers/single_mixin.rb