You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently tinkering railroady with spreecommerce and im getting a lot of uninitialized constant errors when generating the model using the all engines option. The model graph is blank but the controllers are generated with no problems.
The text was updated successfully, but these errors were encountered:
This would seem to be somewhat spree specific, in that the method:
def get_engine_files
engines.collect { |engine| Dir.glob("#{engine.root.to_s}/app/models/**/*.rb")}.flatten
end
Is not going to load the models correctly, since the spree gem is actually bunch of related gems, like spree-core, etc.
This means that the path for each models dir, is something like:
"#{engine.root.to_s}/**/app/models/**/*.rb"
I quickly threw this in to the railroady gem and it successfully generated a model diagram with less errors, although I'm posting this here more as a signpost than any sort of real solution at present.
Currently tinkering railroady with spreecommerce and im getting a lot of uninitialized constant errors when generating the model using the all engines option. The model graph is blank but the controllers are generated with no problems.
The text was updated successfully, but these errors were encountered: