app/helpers/usman/authentication_helper.rb in usman-0.4.5.pre.materialize vs app/helpers/usman/authentication_helper.rb in usman-0.4.6.pre.materialize

- old
+ new

@@ -104,10 +104,10 @@ end def current_feature return @current_feature unless @current_feature.nil? return if @resource_options.nil? - feature_name = @resource_options[:feature_name] || @resource_options[:class] + feature_name = @resource_options[:feature_name] || @resource_options[:class].try(:name) @current_feature = Feature.published.find_by_name(feature_name) end def current_permission