This departs from a fundamental convention in constant autoloading:

    Constant Foo is expected to be autoloaded from a file called foo.rb
    that lives somewhere in config.autoload_paths.

In your situation there are no files for these models, so I would like
to understand the details further to see the implications and whether
there is a way to do what you want.

For example, let's suppose there is a metaprogrammed model is called
Foo. What happens if I do

    bin/rails runner Foo

Does it work? If it does, how is that definition on-the-fly
implemented in your application?

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/rubyonrails-core.
For more options, visit https://groups.google.com/d/optout.

Reply via email to