Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
remove unused private methods
  • Loading branch information
lest committed Jan 13, 2012
1 parent 41c3d4a commit 22cbc1a
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions actionpack/lib/action_view/helpers/url_helper.rb
Expand Up @@ -643,22 +643,6 @@ def add_method_to_attributes!(html_options, method)
html_options["data-method"] = method
end

def options_for_javascript(options)
if options.empty?
'{}'
else
"{#{options.keys.map { |k| "#{k}:#{options[k]}" }.sort.join(', ')}}"
end
end

def array_or_string_for_javascript(option)
if option.kind_of?(Array)
"['#{option.join('\',\'')}']"
elsif !option.nil?
"'#{option}'"
end
end

# Processes the +html_options+ hash, converting the boolean
# attributes from true/false form into the form required by
# HTML/XHTML. (An attribute is considered to be boolean if
Expand Down

0 comments on commit 22cbc1a

Please sign in to comment.