## How to reproduce * Set up a Rails project * Make a User "model": * [Migration](https://github.com/art-solopov/rom-rails-skeleton/blob/autoload-problem-demo/db/migrate/20150914213325_create_users.rb) * [Relation](https://github.com/art-solopov/rom-rails-skeleton/blob/autoload-problem-demo/app/relations/users.rb) * [Repository](https://github.com/art-solopov/rom-rails-skeleton/blob/autoload-problem-demo/app/repositories/user_repository.rb) * [Struct (Entity)](https://github.com/art-solopov/rom-rails-skeleton/blob/autoload-problem-demo/app/models/entities/user.rb) * Insert some test user names and emails * Run this code in `rails c`: ```ruby user_repo = UserRepository.new(ROM.env) u = user_repo.users.first puts u.login ``` ## Expected Some string printed ## Actual ROM::Struct::MissingAttribute: undefined method `login' for #<Entities::User:0x005644dfbd85b0> (not loaded attribute?) ## Additional info This seems to be an autoloading issue since setting `config.eager_load` to `true` produces the expected result. The full code of the Rails project can be found [here.](https://github.com/art-solopov/rom-rails-skeleton/tree/autoload-problem-demo)