Sha256: c8fc97cce1a48a59f6c09a4d2c0bddeb1deb85601d38264e9b77715fd45a9d67
Contents?: true
Size: 493 Bytes
Versions: 2
Compression:
Stored size: 493 Bytes
Contents
module FormGroups module GroupBuilder extend ActiveSupport::Concern included do def field method, options = {}, &block raise ArgumentError, "Missing block" unless block_given? FieldTag.new(object_name, method, object, @template, self, options).render(&block) end private def objectify options options.merge(object: object) end end end end ActionView::Helpers::FormBuilder.send :include, FormGroups::GroupBuilder
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
formgroups-rails-0.0.3 | lib/form_groups/group_builder.rb |
formgroups-rails-0.0.2 | lib/form_groups/group_builder.rb |