Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed issue where first argument was not a symbol

  • Loading branch information...
commit ef13d9a692db4f31bc65ecd83bbccb41f466b29d 1 parent cdad799
@jeena authored
Showing with 1 addition and 3 deletions.
  1. +1 −3 lib/rails_extensions.rb
View
4 lib/rails_extensions.rb
@@ -2,10 +2,8 @@ module ActionController
class Base
def render_with_plist(options = nil, extra_options = {}, &block)
- plist = options.delete(:plist) unless options.nil?
+ if options and options.is_a?(Hash) and plist = options.delete(:plist)
- if plist
-
response.headers["Location"] = options[:location] unless options[:location].blank?
options[:content_type] ||= Mime::PLIST
options[:disposition] ||= "inline"
Please sign in to comment.
Something went wrong with that request. Please try again.