Skip to content

Commit

Permalink
Require grape/rabl
Browse files Browse the repository at this point in the history
  • Loading branch information
LTe committed Jan 12, 2012
1 parent 710f952 commit e99a185
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ And then execute:
### Require grape-rabl
```ruby
# config.ru
require 'grape-rabl'
require 'grape/rabl'
```

### Setup view root directory
```ruby
# config.ru
require 'grape-rabl'
require 'grape/rabl'

use Rack::Config do |env|
env['api.tilt.root'] = '/path/to/view/root/directory'
Expand Down Expand Up @@ -67,7 +67,7 @@ get "/home", :rabl => "view.rabl"

```ruby
# config.ru
require 'grape-rabl'
require 'grape/rabl'

use Rack::Config do |env|
env['api.tilt.root'] = '/path/to/view/root/directory'
Expand Down
1 change: 1 addition & 0 deletions lib/grape/rabl.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require 'grape-rabl'
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
require 'bundler'
Bundler.setup :default, :test

require 'grape-rabl'
require 'grape/rabl'
require 'rspec'
require 'rack/test'
require 'ostruct'
Expand Down

0 comments on commit e99a185

Please sign in to comment.