Skip to content

Commit 1c25949

Browse files
committed
fixed the readme file example code
1 parent b9923c1 commit 1c25949

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.markdown

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Grape is available as a gem, to install it just install the gem:
1212

1313
Grape APIs are Rack applications that are created by subclassing `Grape::API`. Below is a simple example showing some of the more common features of Grape in the context of recreating parts of the Twitter API.
1414

15-
class Twitter::API < Grape::Base
15+
class Twitter::API < Grape::API
1616
version '1'
1717
1818
helpers do
@@ -49,9 +49,9 @@ Grape APIs are Rack applications that are created by subclassing `Grape::API`. B
4949
end
5050
end
5151

52-
This would create a Rack application that could be used like so (in a Rackup file):
52+
This would create a Rack application that could be used like so (in a Rackup config.ru file):
5353

54-
use Twitter::API
54+
run Twitter::API
5555

5656
And would respond to the following routes:
5757

0 commit comments

Comments
 (0)