Sha256: 00acaf284f9a7af2ed038ad564b4c55f28e1cf4c45840273b9686d2cafb9bbed

Contents?: true

Size: 449 Bytes

Versions: 8

Compression:

Stored size: 449 Bytes

Contents

class <%= name.camelize %>Input <%= @extension_sentence %>
  <%- if !options[:extend] -%>
  include Formtastic::Inputs::Base
  <%- end -%>

  <%- if !options[:extend] || (options[:extend] == "extend")  -%>
  def to_html
    # Add your custom input definition here.
    <%- if options[:extend] == "extend" -%>
    super
    <%- end -%>
  end

  <%- else -%>
  def input_html_options
    # Add your custom input extension here.
  end
  <%- end -%>
end

Version data entries

8 entries across 8 versions & 3 rubygems

Version Path
formtastic-5.0.0 lib/generators/templates/input.rb
date_n_time_picker_activeadmin-0.1.2 vendor/bundle/ruby/2.6.0/gems/formtastic-4.0.0/lib/generators/templates/input.rb
date_n_time_picker_activeadmin-0.1.1 vendor/bundle/ruby/2.6.0/gems/formtastic-4.0.0/lib/generators/templates/input.rb
formtastic-4.0.0 lib/generators/templates/input.rb
formtastic-4.0.0.rc1 lib/generators/templates/input.rb
formtastic-3.1.5 lib/generators/templates/input.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/formtastic-3.1.4/lib/generators/templates/input.rb
formtastic-3.1.4 lib/generators/templates/input.rb