Skip to content

Instantly share code, notes, and snippets.

View jenncoop's full-sized avatar

Jenn Cooper jenncoop

View GitHub Profile
@jenncoop
jenncoop / json_gem_coder.rb
Last active August 29, 2015 14:03
Rails Custom Coder to Restore JSON Gem Behaviour
class JSONGemCoder
def self.dump(obj)
::JSON.dump(obj)
end
def self.load(json)
::JSON.load(json)
end
end
@jenncoop
jenncoop / rates.rb
Created September 19, 2013 19:18
ShipIt Rates Class
class Rates
# options should include:
# => height
# => length
# => width
# => weight
# => origin_post_code
# => origin_country
# => destination_post_code
# => destination_country