lib/cancan/controller_resource.rb
def resource_class
      case @options[:class]
      when false  then name.to_sym
      when nil    then namespaced_name.to_s.camelize.constantize
      when String then @options[:class].constantize
      else @options[:class]
      end
    end
def resource_class
      case @options[:class]
      when false  then name.to_sym
      when nil    then namespaced_name.to_s.camelize.constantize
      when String then @options[:class].constantize
      else @options[:class]
      end
    end
Returns the class used for this resource. This can be overriden by the :class option.
 If +false+ is passed in it will use the resource name as a symbol in which case it should
 only be used for authorization, not loading since there's no class to load through.