sogilis-moxie_forum 0.2.9 → 0.2.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- Rails.application.routes.draw do |map|
1
+ Rails.application.routes.draw do
2
2
 
3
3
  mount_at = MoxieForum::Engine.config.mount_at
4
4
 
@@ -14,7 +14,7 @@ Rails.application.routes.draw do |map|
14
14
  end
15
15
  resources :posts
16
16
 
17
- namespace :admin, :name_prefix => 'admin' do
17
+ namespace :admin, :as => 'admin' do
18
18
  resources :forums
19
19
  end
20
20
  end
@@ -21,10 +21,10 @@ module MoxieForum
21
21
  initializer "moxie_forum.check_config" do |app|
22
22
 
23
23
  # load all the models in the app
24
- Dir.glob(RAILS_ROOT + '/app/models/**/*.rb').each { |file| require file }
24
+ Dir.glob(Rails.root.to_s + '/app/models/**/*.rb').each { |file| require file }
25
25
 
26
26
  # Figure out which one is the official user class
27
- config.user_model = ActiveRecord::Base.send(:subclasses).select { |c| c.respond_to? :i_am_moxie_user }.first
27
+ config.user_model = ActiveRecord::Base.send(:descendants).select { |c| c.respond_to? :i_am_moxie_user }.first
28
28
  config.user_model_name = config.user_model.to_s
29
29
 
30
30
  # make sure mount_at ends with trailing slash
@@ -34,7 +34,7 @@ module MoxieForum
34
34
  initializer "static assets" do |app|
35
35
  app.middleware.use ::ActionDispatch::Static, "#{root}/public"
36
36
 
37
- # ActionController::Base.helpers_path << "#{RAILS_ROOT}/vendor/plugins/moxieforum/app/helpers/moxie"
37
+ # ActionController::Base.helpers_path << "#{Rails.root.to_s}/vendor/plugins/moxieforum/app/helpers/moxie"
38
38
  end
39
39
 
40
40
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 9
9
- version: 0.2.9
8
+ - 10
9
+ version: 0.2.10
10
10
  platform: ruby
11
11
  authors:
12
12
  - Keith Schacht, Guillaume Hammadi
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-02-16 00:00:00 +01:00
17
+ date: 2011-02-17 00:00:00 +01:00
18
18
  default_executable:
19
19
  dependencies: []
20
20