Skip to content

Instantly share code, notes, and snippets.

@bogdan
Created October 25, 2010 09:28
Show Gist options
  • Save bogdan/644667 to your computer and use it in GitHub Desktop.
Save bogdan/644667 to your computer and use it in GitHub Desktop.
def render(options = nil, *args)
if options.is_a?(Hash)
if json = options[:json]
if json.is_a?(Hash)
json[:flash] = flash
end
end
end
super(options, *args)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment