Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed typo and formatting.

  • Loading branch information...
commit bfe5b00f48af2a80d2d6673882d4f8e9ada7a6e5 1 parent 561e71e
Brian Takita authored
13 lib/erector/rails/extensions/rails_widget.rb
View
@@ -18,10 +18,12 @@ def self.render(widget, controller, assigns = nil, is_partial = false)
view.send(:_evaluate_assigns_and_ivars)
view.with_output_buffer do
- widget.to_s(:output => view.output_buffer,
- :parent => view,
- :helpers => view,
- :content_method_name => is_partial ? :render_partial : :content)
+ widget.to_s(
+ :output => view.output_buffer,
+ :parent => view,
+ :helpers => view,
+ :content_method_name => is_partial ? :render_partial : :content
+ )
end
end
@@ -44,7 +46,8 @@ def capture_with_parent(&block)
end
# This is here to force #parent.capture to return the output
- def __in_erb_template; end
+ def __in_erb_template;
+ end
private
2  spec/rails_root/spec/rails_helpers_spec.rb
View
@@ -80,7 +80,7 @@ def sortable_js_for(element_id, url)
"Sortable.create(\"#{element_id}\", {onUpdate:function(){new Ajax.Request('#{url}', {asynchronous:true, evalScripts:true, parameters:Sortable.serialize(\"#{element_id}\")})}})"
end
- describe "#sortable_elemnt" do
+ describe "#sortable_element" do
it "renders sortable helper js" do
widget_class = Class.new(Erector::Widget) do
def content
Please sign in to comment.
Something went wrong with that request. Please try again.