diff --git a/app/views/users/_memberships.rhtml b/app/views/users/_memberships.rhtml index 5b0c774..bc51cd4 100644 --- a/app/views/users/_memberships.rhtml +++ b/app/views/users/_memberships.rhtml @@ -1,5 +1,5 @@ <%# TODO: Override the default view until post 0.8.x which will have the hooks %> -<% if @memberships.any? %> +<% if @memberships && @memberships.any? %>
| <%= l(:label_project) %> | diff --git a/lib/rate_users_helper_patch.rb b/lib/rate_users_helper_patch.rb index 139d2b3..b6da8c8 100644 --- a/lib/rate_users_helper_patch.rb +++ b/lib/rate_users_helper_patch.rb @@ -1,4 +1,4 @@ -require_dependency 'users_helper' +require 'users_helper' module RateUsersHelperPatch def self.included(base) # :nodoc:
|---|