Update CONFIGURE.md for Rails 4
Rails 4 doesn't support a :without_protection => true option.
This commit is contained in:
parent
697790562b
commit
5a4c4e5e9c
1 changed files with 2 additions and 2 deletions
|
@ -31,9 +31,9 @@ To give administrator or moderator permissions:
|
|||
$ bundle exec rails console
|
||||
>> user = User.find_by_display_name("My New User Name")
|
||||
=> #[ ... ]
|
||||
>> user.roles.create( {:role => "administrator", :granter_id => user.id}, :without_protection => true)
|
||||
>> user.roles.create(:role => "administrator", :granter_id => user.id)
|
||||
=> #[ ... ]
|
||||
>> user.roles.create( {:role => "moderator", :granter_id => user.id}, :without_protection => true)
|
||||
>> user.roles.create(:role => "moderator", :granter_id => user.id)
|
||||
=> #[ ... ]
|
||||
>> user.save!
|
||||
=> true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue