Skip to content

Commit

Permalink
Update controller creation instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
aldesantis committed Jan 18, 2017
1 parent f6b0c86 commit 294b7d2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,13 @@ module API
end
```

Then inherit from the resource controller:
Then create a resource controller:

```ruby
module API
module V1
class UsersController < Pragma::Devise::UsersController
class UsersController < ApplicationController
include Pragma::Rails::ResourceController
end
end
end
Expand Down

0 comments on commit 294b7d2

Please sign in to comment.