lib/view_models/render_options.rb
# Extracts the template name from the given parameter.
#
# If it's a hash, it will remove and use the :partial option.
# If not, it will use that.
#
Extracts the template name from the given parameter.
If it's a hash, it will remove and use the :partial option.
If not, it will use that.
Extracts the template name from the given parameter . If it ' s a hash it will remove and use the : partial option . If not it will use that .
def deoptionize template_name
          if template_name.kind_of?(Hash)
            @options.merge! template_name
            @options.delete :partial
          else
            template_name
          end
        end
def deoptionize template_name if template_name . kind_of? ( Hash ) @options . merge! template_name @options . delete :partial else template_name end end
Extracts the template name from the given parameter.
Extracts the template name from the given parameter .
template_name
<not_specific>