Sha256: 5f3537c2103b4960b58153a24c94e0799357aad479842878679dde4022832d69
Contents?: true
Size: 629 Bytes
Versions: 1
Compression:
Stored size: 629 Bytes
Contents
require 'polygallery' module Polygallery module SimpleFormHelper def self.simple_fields_for_polygallery(fb, title=:gallery, *args, &block) ( '<div class="polygallery-fields">' << fb.simple_fields_for(title, *args, &block) << '</div>' ).html_safe end def simple_fields_for_polygallery(fb, title=:gallery, *args, &block) new_block = block_given? ? block : ->(fb2) { render partial: 'polygallery/galleries/simple_fields_for', locals: { f: fb2 } } Polygallery::SimpleFormHelper.simple_fields_for_polygallery( fb, title, *args, &new_block) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
polygallery-0.4.0 | lib/polygallery/simple_form_helper.rb |