lib/lotus/application.rb in lotusrb-0.5.0 vs lib/lotus/application.rb in lotusrb-0.6.0

- old
+ new

@@ -132,13 +132,13 @@ # # load! # end # # module Controllers::Dashboard - # include OneFile::Controller + # class Index + # include OneFile::Action # - # action 'Index' do # def call(params) # self.body = 'Hello!' # end # end # end @@ -209,13 +209,13 @@ # @return [Array] a serialized Rack response # # @since 0.1.0 # # @see http://rack.github.io + # @see Lotus::RenderingPolicy#render # @see Lotus::Application#middleware def call(env) - renderer.render(env, - middleware.call(env)) + renderer.render(env, middleware.call(env)) end # Rack middleware stack # # @return [Lotus::Middleware] the middleware stack