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