lib/happy/ext/resources.rb in happy-0.1.0.pre.5 vs lib/happy/ext/resources.rb in happy-0.1.0.pre.6
- old
+ new
@@ -3,10 +3,10 @@
module Happy
module Extensions
module Resources
module ControllerExtensions
def resource(klass, options = {}, &blk)
- invoke ResourceMounter, options.merge(:class => klass), &blk
+ run ResourceMounter, options.merge(:class => klass), &blk
end
end
class ResourceMounter < Happy::Controller
def render_resource_template(name)