Sha256: d2e5a58fea255679551727bf3d20b15ff1b8943f9bb17980b959d01dbd20f3fd
Contents?: true
Size: 409 Bytes
Versions: 34
Compression:
Stored size: 409 Bytes
Contents
module PushType module FieldsHelper def render_field(field, f, html_options = {}) field.instance_variable_get(:@opts)[:html_options].merge! html_options content_tag :div, class: field.kind do render "push_type/fields/#{ field.template }", f: f, field: field end end def field_classes(field) [field.css_class, 'columns end'].compact.join(' ') end end end
Version data entries
34 entries across 34 versions & 1 rubygems