Skip to content

Instantly share code, notes, and snippets.

@alanho
Created May 30, 2012 04:34
Show Gist options
  • Save alanho/2833791 to your computer and use it in GitHub Desktop.
Save alanho/2833791 to your computer and use it in GitHub Desktop.
Monkey patch in Rails Initializers example
ActionDispatch::Callbacks.to_prepare do
Devise::Oauth2Providable::Client.class_eval do
attr_accessible :name, :website, :redirect_uri, :development_mode
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment