Sha256: 368baf8ac2d51d4bf7cfafcb4ed0d2d2cb97fb81827905ffaec44c3e67ecf2d4

Contents?: true

Size: 380 Bytes

Versions: 2

Compression:

Stored size: 380 Bytes

Contents

module ExtForm
  module Wrappers
    module ManyMixin
      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/many_mixin.rb
ext_form-0.1.4 lib/ext_form/wrappers/many_mixin.rb