Skip to content

Commit

Permalink
deferred -> deferred_tag for better clarity.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Apr 11, 2014
1 parent 5e49804 commit ee9b000
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/utopia/middleware/content.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

module Utopia
module Middleware

class Content
def initialize(app, options = {})
@app = app
Expand Down Expand Up @@ -144,6 +144,7 @@ def call(env)
end

node.process!(request, response, attributes)

return response.finish
end
else
Expand Down
2 changes: 1 addition & 1 deletion lib/utopia/middleware/content/node.rb
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ def cdata(text)
current.cdata(text)
end

def deferred(*args, &block)
def deferred_tag(*args, &block)
if block_given?
current.defer(&block)
else
Expand Down

0 comments on commit ee9b000

Please sign in to comment.