require MyEngine::Engine.root.join('app', 'models', 'my_engine', 'my_model')
before the model class definition in your application.
More Related Contents:
- Begin, Rescue and Ensure in Ruby?
- How to “pretty” format JSON output in Ruby on Rails
- Rails :dependent => :destroy VS :dependent => :delete_all
- difference between collection route and member route in ruby on rails?
- Using Rails serialize to save hash to database
- How to handle Ruby on Rails error: “Please install the postgresql adapter: `gem install activerecord-postgresql-adapter'”
- In Rails, how do you render JSON using a view?
- Rails sessions current practices
- Heroku upload-Precompiling assets failed
- What tools do you recommend to profile Rails apps? [closed]
- Rails ActiveRecord: Find All Users Except Current User
- Rails: around_* callbacks
- Rails 3 disabling session cookies
- Undefined method raise_in_transactional_callbacks=’ for ActiveRecord::Base:Class (NoMethodError)
- How to avoid NoMethodError for nil elements when accessing nested hashes? [duplicate]
- Add a default value to a column through a migration
- Rails: How to change the title of a page?
- delete_all vs destroy_all?
- Best practices to handle routes for STI subclasses in rails
- To use self. or not.. in Rails
- NoMethodError when trying to invoke helper method from Rails controller
- When do I need to restart server in Rails?
- Why not use shared ActiveRecord connections for Rspec + Selenium?
- Getting a “bad interpreter” error when using brew
- How can I format the value shown in a Rails edit field?
- Unpermitted Parameters adding new fields to Devise in rails 4.0
- OpenSSL::SSL::SSLError: SSL_connect SYSCALL returned=5 errno=0 state=SSLv3 read server hello A
- Rails dot instead of slash in URL
- macOS, Rails: “Failed to build gem native extension”
- RubyInstaller 2.2.1 and Rails – Rake cannot load Nokogiri