Sha256: 7e722b7f97820c1490fa00e5801536922796708922d0429c2a7846b7612b2e18
Contents?: true
Size: 466 Bytes
Versions: 2
Compression:
Stored size: 466 Bytes
Contents
# In development mode, we need to ensure that all controllers are loaded, # because that's how AdminAssistant knows what routes to create unless Rails.configuration.cache_classes controllers_path = "#{Rails.root}/app/controllers" AdminAssistant.all_files_under(controllers_path).each do |path| if path =~ /\.rb$/ require path end end end Rails.application.routes.draw do AdminAssistant.routes.each do |route| route.add(binding) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
admin_assistant-2.2.2 | config/routes.rb |
admin_assistant-2.2.1 | config/routes.rb |