Skip to content

Commit

Permalink
Remove render override
Browse files Browse the repository at this point in the history
  • Loading branch information
kbparagua committed Apr 25, 2015
1 parent 40c3ce8 commit 32e1455
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions lib/paloma/action_controller_extension.rb
Expand Up @@ -125,19 +125,7 @@ def insert_paloma_hook
end


#
# Make sure not to execute paloma on the following response type
#
def render options = nil, extra_options = {}, &block
[:json, :js, :xml, :file].each do |format|
if options.has_key?(format)
self.paloma.clear_request
break
end
end if options.is_a?(Hash)

super
end


protected
Expand Down

0 comments on commit 32e1455

Please sign in to comment.