Method: Adminable::Configuration.redirect_root_path
- Defined in:
- lib/adminable/configuration.rb
.redirect_root_path ⇒ Object
20 21 22 23 24 25 26 |
# File 'lib/adminable/configuration.rb', line 20 def self.redirect_root_path if resources.any? resources.first.name else Rails.application.routes.url_helpers.root_path end end |