Sha256: cbd18f84095ff78e0c2bb0515b14ad013c404487157dc32b1095826c7fa39867

Contents?: true

Size: 235 Bytes

Versions: 3

Compression:

Stored size: 235 Bytes

Contents

module Component
  module ResourceTable::BooleanConcern
    extend ActiveSupport::Concern

    def boolean(name, options = {}, &block)
      options.reverse_merge!(render_as: :boolean)
      row(name, options, &block)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rails-add_ons-3.0.0.pre1 app/concerns/component/resource_table/boolean_concern.rb
rails-add_ons-2.2.1 app/concerns/component/resource_table/boolean_concern.rb
rails-add_ons-2.2.0 app/concerns/component/resource_table/boolean_concern.rb