update radius, modify routes to handle modules, add blog module
This commit is contained in:
1 parent
0067ac48a5
commit
106db069fd
63 files changed
+10594
-17
No files matched your search
@@ -14,8 +14,13 @@ Bundler.require(:default, Rails.env) if defined?(Bundler)
|
||||
|
||||
module PrototypeR4
|
||||
class Application < Rails::Application
|
||||
|
||||
config.middleware.use RerouteMiddleware
|
||||
|
||||
config.paths.vendor.plugins.instance_variable_set("@paths", config.paths.vendor.plugins.instance_variable_get("@paths") + ["#{config.root}/vendor/built_in_modules"])
|
||||
config.paths.vendor.plugins.instance_variable_set("@paths", config.paths.vendor.plugins.instance_variable_get("@paths") + ["#{config.root}/vendor/downloaded_modules"])
|
||||
config.paths.vendor.plugins.instance_variable_set("@paths", config.paths.vendor.plugins.instance_variable_get("@paths") + ["#{config.root}/vendor/radius"])
|
||||
|
||||
# Settings in config/environments/* take precedence over those specified here.
|
||||
# Application configuration should go into files in config/initializers
|
||||
# -- all .rb files in that directory are automatically loaded.
|
||||
|
||||
+3
-2
@@ -70,8 +70,9 @@ PrototypeR4::Application.routes.draw do
|
||||
end
|
||||
}
|
||||
|
||||
match '/' => 'pages#index'
|
||||
match '*page_name' => 'pages#show', :as => :page
|
||||
match '*page_name' => 'pages#show', :as => :page, :constraints => lambda{|request|
|
||||
!request.path.starts_with?("/panel")
|
||||
}
|
||||
|
||||
# Sample resource route with more complex sub-resources
|
||||
# resources :products do
|
||||
|
||||
Reference in new issue
Block a user