ryanb / cancan

Authorization Gem for Ruby on Rails.
MIT License
6.26k stars 783 forks source link

Problem with namespace #434

Closed diegorv closed 12 years ago

diegorv commented 13 years ago

Hi, this is my scenario.

My controller:

class Rh::PaymentTypesController < InheritedResources::Base authorize_resource end

My model:

class Rh::PaymentType < ActiveRecord::Base end

Without authorize_resource, this work fine, with i got this error: Expected /Users/diegorv/Documents/rails/work/Phenix_ERP/app/models/rh/payment_type.rb to define PaymentType

Buts the right is Rh::PaymentType

diegorv commented 13 years ago

This fix my problem: https://github.com/ryanb/cancan/pull/424