Commit 9d21766eda78da6c27281effe9cb3a33438bdd23
1 parent
36e5b9ab
Exists in
master
and in
28 other branches
Make ApplicationController#profile method public
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
lib/needs_profile.rb
| @@ -14,12 +14,12 @@ module NeedsProfile | @@ -14,12 +14,12 @@ module NeedsProfile | ||
| 14 | profile || environment # prefers profile, but defaults to environment | 14 | profile || environment # prefers profile, but defaults to environment |
| 15 | end | 15 | end |
| 16 | 16 | ||
| 17 | - protected | ||
| 18 | - | ||
| 19 | def profile | 17 | def profile |
| 20 | @profile | 18 | @profile |
| 21 | end | 19 | end |
| 22 | 20 | ||
| 21 | + protected | ||
| 22 | + | ||
| 23 | def load_profile | 23 | def load_profile |
| 24 | @profile ||= environment.profiles.find_by_identifier(params[:profile]) | 24 | @profile ||= environment.profiles.find_by_identifier(params[:profile]) |
| 25 | if @profile | 25 | if @profile |