Browse files

Clarify the README with regards to including Gon in classic applications

  • Loading branch information...
1 parent fd959dc commit 1b8c0041288ba347295de8af898dd43bb355ba8c @canton7 canton7 committed Apr 19, 2012
Showing with 7 additions and 3 deletions.
  1. +7 −3
@@ -14,12 +14,16 @@ For rails use [gon](
+**Note: For classic (non-modular) applications, you still have to explicitely register `Gon::Sinatra`**
``` ruby
-register Gon::Sinatra
+# For classic applications:
+Sinatra::register Gon::Sinatra
# and if you want to the use Rabl integration
-register Gon::Sinatra::Rabl
+Sinatra::register Gon::Sinatra::Rabl
-#or, in a classy app:
+# For modular applications:
class MySinatraApplication < Sinatra::Base #or Padrino::Application
register Gon::Sinatra

0 comments on commit 1b8c004

Please sign in to comment.