class ShowFor::Builder

Attributes

object[R]
template[R]

Public Class Methods

new(object, template) click to toggle source
# File lib/show_for/builder.rb, line 15
def initialize(object, template)
  @object, @template = object, template
end

Protected Instance Methods

apply_wrapper_options!(type, options, value) click to toggle source
# File lib/show_for/builder.rb, line 54
def apply_wrapper_options!(type, options, value)
  options[:"#{type}_html"] ||= {}
  options[:"#{type}_html"][:class] = [options[:"#{type}_html"][:class], ShowFor.blank_content_class].join(' ') if is_empty?(value)
  options
end