Skip to content

Instantly share code, notes, and snippets.

@jasonneylon

jasonneylon/hash.rb

Created Aug 27, 2014
Embed
What would you like to do?
FlashHash patch for Rails 3
class Hash
def now
Rails.logger.warn "Stubbing now during upgrade"
{}
end
def keep
# stub keep for upgrade purposes
Rails.logger.warn "Stubbing keep during upgrade"
end
def sweep
# stub sweep for upgrade purposes
Rails.logger.warn "Stubbing sweep during upgrade"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment