Skip to content

Commit

Permalink
Fixed tabbing
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis O'Connor committed Jan 31, 2012
1 parent f474f3d commit cf6c427
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lib/shopify_api/json_format.rb
Expand Up @@ -26,14 +26,14 @@ module ActiveModel
module Serializers
module JSON
def as_json(options = nil)
root = options[:root] if options.try(:key?, :root)
if include_root_in_json
root = self.class.model_name.element if root == true
{ root => serializable_hash(options) }
else
serializable_hash(options)
end
root = options[:root] if options.try(:key?, :root)
if include_root_in_json
root = self.class.model_name.element if root == true
{ root => serializable_hash(options) }
else
serializable_hash(options)
end
end
end
end
end

0 comments on commit cf6c427

Please sign in to comment.