Skip to content

Commit

Permalink
removing rendering protection that allows direct rendering without te…
Browse files Browse the repository at this point in the history
…mplate
  • Loading branch information
guilhermesilveira committed Aug 30, 2010
1 parent b7652ed commit d3e0349
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Expand Up @@ -14,5 +14,4 @@ def show
respond_with @payment
end


end
4 changes: 1 addition & 3 deletions lib/restfulie/server/action_controller/base.rb
Expand Up @@ -28,8 +28,6 @@ def include_restfulie?
defined?(Restfulie::Server::ActionController::Base) && self.include?(Restfulie::Server::ActionController::Base)
end
end

protected

# If your controller inherits from Restfulie::Server::Controller::Base,
# it will have an :atom option, very similar to render :xml
Expand All @@ -39,7 +37,7 @@ def render(options = nil, extra_options = {}, &block)
representation = atom.respond_to?(:to_atom) ? atom.to_atom.to_xml : atom.to_xml
options[:text] = representation
options[:atom] = nil
render options
super options
else
super
end
Expand Down

0 comments on commit d3e0349

Please sign in to comment.