Sha256: cfea086af957da97976d7584cdce170a9505b9d238d684e9bd59c2d4f54592f2
Contents?: true
Size: 379 Bytes
Versions: 3
Compression:
Stored size: 379 Bytes
Contents
SimpleAdmin::Engine.routes.draw do root :to => "admin#index", :interface => SimpleAdmin::registered.first.try(:collection) SimpleAdmin::registered.each do |interface| resources interface.collection, :controller => :admin, :as => "simple_admin_#{interface.collection}", :defaults => {:interface => interface.collection} end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
simple_admin-0.5.0 | config/routes.rb |
simple_admin-0.4.1 | config/routes.rb |
simple_admin-0.4.0 | config/routes.rb |