Skip to content
This repository has been archived by the owner on Sep 4, 2018. It is now read-only.

Commit

Permalink
Merge pull request #245 from alexandremcosta/ability_namespace
Browse files Browse the repository at this point in the history
fix Ability namespace on security tutorial
  • Loading branch information
huoxito committed Jul 2, 2014
1 parent de73c33 commit daa30cc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions content/developer/tutorials/security.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class AbilityDecorator
end
end

Ability.register_ability(AbilityDecorator)
Spree::Ability.register_ability(AbilityDecorator)
```

### Custom Roles in the Admin Namespace
Expand All @@ -147,7 +147,7 @@ class AbilityDecorator
end
end

Ability.register_ability(AbilityDecorator)
Spree::Ability.register_ability(AbilityDecorator)
```

This is required by the following code in Spree's `Admin::BaseController` which
Expand Down Expand Up @@ -306,4 +306,4 @@ Spree will periodically check for important security and release announcements.
"rails_env": "production",
"host": "www.spreecommerce.com"
}
```
```

0 comments on commit daa30cc

Please sign in to comment.