Sha256: 0861bad7ea2f223a139210f0744f2d53ce77870541e5dd8a22d7507e0203913b

Contents?: true

Size: 260 Bytes

Versions: 6

Compression:

Stored size: 260 Bytes

Contents

# used used by the form erbs
module Voom::Presenters::WebClient::Helpers
  module FormHelpers

    def buttons?(components)
      buttons(components).any?
    end

    def buttons(components)
      components.select {|c| eq(c.type, :button)}
    end

  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
voom-presenters-2.1.2 lib/voom/presenters/web_client/helpers/form_helpers.rb
voom-presenters-2.1.0 lib/voom/presenters/web_client/helpers/form_helpers.rb
voom-presenters-2.0.3 lib/voom/presenters/web_client/helpers/form_helpers.rb
voom-presenters-2.0.2 lib/voom/presenters/web_client/helpers/form_helpers.rb
voom-presenters-2.0.1 lib/voom/presenters/web_client/helpers/form_helpers.rb
voom-presenters-2.0.0 lib/voom/presenters/web_client/helpers/form_helpers.rb