Commit 9d21766eda78da6c27281effe9cb3a33438bdd23
1 parent
36e5b9ab
Exists in
master
and in
29 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 | 14 | profile || environment # prefers profile, but defaults to environment |
15 | 15 | end |
16 | 16 | |
17 | - protected | |
18 | - | |
19 | 17 | def profile |
20 | 18 | @profile |
21 | 19 | end |
22 | 20 | |
21 | + protected | |
22 | + | |
23 | 23 | def load_profile |
24 | 24 | @profile ||= environment.profiles.find_by_identifier(params[:profile]) |
25 | 25 | if @profile | ... | ... |