Sha256: 1c9e413c8976b1c24c866bfc4f9b5ccf83d7dbb83f1a6cd4c49dee7d3519d7d9

Contents?: true

Size: 157 Bytes

Versions: 17

Compression:

Stored size: 157 Bytes

Contents

module Formstrap
  class HiddenView < ViewModel
    def input_options
      keys = attributes - %i[attribute form]
      to_h.slice(*keys)
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

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