Skip to content

Instantly share code, notes, and snippets.

@mrjman
Created August 26, 2014 14:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrjman/08e8d84afc4bcb47478f to your computer and use it in GitHub Desktop.
Save mrjman/08e8d84afc4bcb47478f to your computer and use it in GitHub Desktop.
module Builder
def collection_otherable_check_boxes(method, collection, value_method, text_method, options = {}, html_options = {}, &block)
SimpleForm::Tags::CollectionCheckBoxes.new(@object_name, method, @template, collection, value_method, text_method, objectify_options(options), @default_options.merge(html_options)).render(&block)
end
def collection_nested_versionable(method, collection, value_method, text_method, options = {}, html_options = {}, &block)
SimpleForm::Tags::CollectionCheckBoxes.new(@object_name, method, @template, collection, value_method, text_method, objectify_options(options), @default_options.merge(html_options)).render(&block)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment