From 9d21766eda78da6c27281effe9cb3a33438bdd23 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Tue, 28 Aug 2012 15:22:07 -0300 Subject: [PATCH] Make ApplicationController#profile method public --- lib/needs_profile.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/needs_profile.rb b/lib/needs_profile.rb index def3b07..86ffaa1 100644 --- a/lib/needs_profile.rb +++ b/lib/needs_profile.rb @@ -14,12 +14,12 @@ module NeedsProfile profile || environment # prefers profile, but defaults to environment end - protected - def profile @profile end + protected + def load_profile @profile ||= environment.profiles.find_by_identifier(params[:profile]) if @profile -- libgit2 0.21.2