Skip to content

Commit 71ea829

Browse files
committed
Replaced hashie_rails by hashie-forbidden_attributes.
1 parent fb0eae7 commit 71ea829

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,11 +274,11 @@ Modify `config/routes`:
274274
mount Twitter::API => '/'
275275
```
276276

277-
Additionally, if the version of your Rails is 4.0+ and the application uses the default model layer of ActiveRecord, you will want to use the `hashie_rails` [gem](https://rubygems.org/gems/hashie_rails). This gem disables the security feature of `strong_params` at the model layer, allowing you the use of Grape's own params validation instead.
277+
Additionally, if the version of your Rails is 4.0+ and the application uses the default model layer of ActiveRecord, you will want to use the `hashie-forbidden_attributes` [gem](https://rubygems.org/gems/hashie-forbidden_attributes). This gem disables the security feature of `strong_params` at the model layer, allowing you the use of Grape's own params validation instead.
278278

279279
```ruby
280280
# Gemfile
281-
gem "hashie_rails"
281+
gem "hashie-forbidden_attributes"
282282
```
283283

284284
See [below](#reloading-api-changes-in-development) for additional code that enables reloading of API changes in development.

0 commit comments

Comments
 (0)