Skip to content

Instantly share code, notes, and snippets.

View rottame's full-sized avatar

Angelo Grossini rottame

View GitHub Profile
def config_site(site)
paths = Rails::Paths::Root.new(Rails.root.join("site_#{site}"))
paths.add "app", eager_load: true, glob: "*"
paths.add "app/assets", glob: "*"
paths.add "app/controllers", eager_load: true
paths.add "app/helpers", eager_load: true
paths.add "app/models", eager_load: true
paths.add "app/mailers", eager_load: true
paths.add "app/views"