Permalink
Browse files

Fixed tabbing

  • Loading branch information...
1 parent f474f3d commit cf6c427ca4d8b9338d11184c470da086c41ea013 Dennis O'Connor committed Jan 31, 2012
Showing with 7 additions and 7 deletions.
  1. +7 −7 lib/shopify_api/json_format.rb
@@ -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.