I have an app with a user model in app/models/user.rb.
Now I wrote an engine witch needs additional methods in the user class.
class User < ActiveRecord::Base
# some code
end
When I add a user model to vendor/plugins/foo/app/models/user.rb with additional methods, the methods are undefined and rails cant find them.
class User < ActiveRecord::Base
# some additional code
end
When I add a foo_user model which inherit from User, it works, but this is not what I would to have :(
class FooUser < User
# some additional code
end
How may I extend the User class from the origin App in the engine?