Browse files

Merge pull request #2 from canton7/readme_usage

Clarify the README with regards to including Gon in classic applications
  • Loading branch information...
2 parents fd959dc + 1b8c004 commit 483a779ea07e001cabcd44f5c854e5c078febde5 @gazay 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 483a779

Please sign in to comment.