Skip to content

Instantly share code, notes, and snippets.

@moretea
Created May 18, 2010 13:02
Show Gist options
  • Save moretea/404961 to your computer and use it in GitHub Desktop.
Save moretea/404961 to your computer and use it in GitHub Desktop.
# What works
MyApp.config do
self.jar "miglayout-3.7"
self.gem "active_resource"
end
# What i'd like to see
MyApp.config do
jar "miglayout-3.7"
gem "active_resource"
end
# How I call this block:
def config &block
config = BoogieWoogie::Application::Config.new(self)
config.instance_exec &block
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment