Skip to content

Instantly share code, notes, and snippets.

@andreacampi
Created September 16, 2011 13:27
Show Gist options
  • Save andreacampi/1222130 to your computer and use it in GitHub Desktop.
Save andreacampi/1222130 to your computer and use it in GitHub Desktop.
Quick tip: how to monkey-patch a Merb controller
Merb::BootLoader.after_app_loads do
class Cookbooks
before :authenticate_every, :only => [ :create, :update ]
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment