Sha256: c60b052c02575d8f3dfd5b856fe728e2e82921892cc342691720ab028c5bc658

Contents?: true

Size: 311 Bytes

Versions: 17

Compression:

Stored size: 311 Bytes

Contents

module Formstrap
  module Wrappable
    extend ActiveSupport::Concern

    included do
      def wrapper_options
        default_wrapper_options.merge(@wrapper || {})
      end

      private

      def default_wrapper_options
        {
          bypass: @wrapper == false
        }
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
formstrap-0.4.6 app/models/concerns/formstrap/wrappable.rb
formstrap-0.4.5 app/models/concerns/formstrap/wrappable.rb
formstrap-0.4.4 app/models/concerns/formstrap/wrappable.rb
formstrap-0.4.3 app/models/concerns/formstrap/wrappable.rb
formstrap-0.4.2 app/models/concerns/formstrap/wrappable.rb
formstrap-0.3.5 app/models/concerns/formstrap/wrappable.rb
formstrap-0.3.4 app/models/concerns/formstrap/wrappable.rb
formstrap-0.3.3 app/models/concerns/formstrap/wrappable.rb
formstrap-0.3.2 app/models/concerns/formstrap/wrappable.rb
formstrap-0.3.1 app/models/concerns/formstrap/wrappable.rb
formstrap-0.3.0 app/models/concerns/formstrap/wrappable.rb
formstrap-0.2.1 app/models/concerns/formstrap/wrappable.rb
formstrap-0.2.0 app/models/concerns/formstrap/wrappable.rb
formstrap-0.1.3 app/models/concerns/formstrap/wrappable.rb
formstrap-0.1.2 app/models/concerns/formstrap/wrappable.rb
formstrap-0.1.1 app/models/concerns/formstrap/wrappable.rb
formstrap-0.1.0 app/models/concerns/formstrap/wrappable.rb