summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore6
-rw-r--r--.ruby-gemset1
-rw-r--r--.ruby-version1
-rw-r--r--Gemfile23
-rw-r--r--Gemfile.lock221
-rwxr-xr-xbin/bundle3
-rwxr-xr-xbin/rails31
-rwxr-xr-xbin/rake4
-rwxr-xr-xbin/setup29
-rw-r--r--config/application.rb2
-rw-r--r--config/environments/development.rb3
-rw-r--r--config/environments/production.rb1
-rw-r--r--config/environments/test.rb25
-rw-r--r--config/routes.rb20
-rw-r--r--test/test_helper.rb2
15 files changed, 204 insertions, 168 deletions
diff --git a/.gitignore b/.gitignore
index 26b8198..834939f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -17,4 +17,8 @@ public/system
17vendor/plugins/paperclip/tmp 17vendor/plugins/paperclip/tmp
18db/sphinx 18db/sphinx
19config/*.sphinx.conf 19config/*.sphinx.conf
20tmp \ No newline at end of file 20tmpconfig/database.yml
21config/database.yml
22config/initializers/secret_token.rb
23tmp/
24config/secrets.yml
diff --git a/.ruby-gemset b/.ruby-gemset
new file mode 100644
index 0000000..c100f88
--- /dev/null
+++ b/.ruby-gemset
@@ -0,0 +1 @@
rails3-upgrade
diff --git a/.ruby-version b/.ruby-version
new file mode 100644
index 0000000..5304f06
--- /dev/null
+++ b/.ruby-version
@@ -0,0 +1 @@
ruby-2.4.10
diff --git a/Gemfile b/Gemfile
index 594f94e..f00395b 100644
--- a/Gemfile
+++ b/Gemfile
@@ -1,26 +1,29 @@
1source 'https://rubygems.org' 1source 'https://rubygems.org'
2 2
3gem 'rails', '3.2.22.5' 3gem 'rails', '4.2.11.3'
4 4
5gem 'pg', '~> 0.17.0' 5gem 'pg', '~> 0.17.0'
6 6
7# from your vendor/plugins, now as gems:
8gem 'acts-as-taggable-on', '~> 3.5' 7gem 'acts-as-taggable-on', '~> 3.5'
9gem 'awesome_nested_set', '~> 2.1' 8gem 'awesome_nested_set', '~> 3.1'
10gem 'acts_as_list' 9gem 'acts_as_list'
11gem 'globalize3', '~> 0.3.0' 10gem 'globalize', '~> 5.0'
12gem 'routing-filter', '~> 0.3' 11gem 'routing-filter', '~> 0.6'
13gem 'paperclip', '~> 3.5' 12gem 'paperclip', '~> 3.5'
14gem 'will_paginate', '~> 3.0' 13gem 'will_paginate', '~> 3.0'
15gem 'exception_notification' 14gem 'exception_notification'
16gem 'libxml-ruby', :require => 'xml' 15gem 'libxml-ruby', :require => 'xml'
17 16
18# gem 'thinking-sphinx', '1.5.0', :require => 'thinking_sphinx' 17gem 'nokogiri', '~> 1.10.10'
18gem 'loofah', '~> 2.20.0'
19gem 'rails-html-sanitizer', '~> 1.4.4'
20gem 'jquery-rails'
21
19gem 'unicorn', '~> 1.1' 22gem 'unicorn', '~> 1.1'
20 23
21group :assets do 24group :assets do
22 gem 'sass-rails', '~> 3.2.3' 25 gem 'sass-rails', '~> 4.0'
23 gem 'coffee-rails', '~> 3.2.1' 26 gem 'coffee-rails', '~> 4.0'
24 gem 'uglifier', '>= 1.0.3' 27 gem 'uglifier', '>= 1.0.3'
25end 28end
26 29
@@ -28,5 +31,5 @@ group :test do
28 gem 'test-unit', '~> 3.5' 31 gem 'test-unit', '~> 3.5'
29end 32end
30 33
31gem 'chaos_calendar', :git => 'https://github.com/erdgeist/chaoscalendar.git', :require => 'chaos_calendar', :branch => 'erdgeist-ruby1.9' 34gem 'chaos_calendar', :git => 'https://github.com/erdgeist/chaoscalendar.git',
32 35 :require => 'chaos_calendar', :branch => 'erdgeist-ruby1.9'
diff --git a/Gemfile.lock b/Gemfile.lock
index 34e0133..6350f67 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -8,136 +8,157 @@ GIT
8GEM 8GEM
9 remote: https://rubygems.org/ 9 remote: https://rubygems.org/
10 specs: 10 specs:
11 actionmailer (3.2.22.5) 11 actionmailer (4.2.11.3)
12 actionpack (= 3.2.22.5) 12 actionpack (= 4.2.11.3)
13 mail (~> 2.5.4) 13 actionview (= 4.2.11.3)
14 actionpack (3.2.22.5) 14 activejob (= 4.2.11.3)
15 activemodel (= 3.2.22.5) 15 mail (~> 2.5, >= 2.5.4)
16 activesupport (= 3.2.22.5) 16 rails-dom-testing (~> 1.0, >= 1.0.5)
17 builder (~> 3.0.0) 17 actionpack (4.2.11.3)
18 actionview (= 4.2.11.3)
19 activesupport (= 4.2.11.3)
20 rack (~> 1.6)
21 rack-test (~> 0.6.2)
22 rails-dom-testing (~> 1.0, >= 1.0.5)
23 rails-html-sanitizer (~> 1.0, >= 1.0.2)
24 actionview (4.2.11.3)
25 activesupport (= 4.2.11.3)
26 builder (~> 3.1)
18 erubis (~> 2.7.0) 27 erubis (~> 2.7.0)
19 journey (~> 1.0.4) 28 rails-dom-testing (~> 1.0, >= 1.0.5)
20 rack (~> 1.4.5) 29 rails-html-sanitizer (~> 1.0, >= 1.0.3)
21 rack-cache (~> 1.2) 30 activejob (4.2.11.3)
22 rack-test (~> 0.6.1) 31 activesupport (= 4.2.11.3)
23 sprockets (~> 2.2.1) 32 globalid (>= 0.3.0)
24 activemodel (3.2.22.5) 33 activemodel (4.2.11.3)
25 activesupport (= 3.2.22.5) 34 activesupport (= 4.2.11.3)
26 builder (~> 3.0.0) 35 builder (~> 3.1)
27 activerecord (3.2.22.5) 36 activerecord (4.2.11.3)
28 activemodel (= 3.2.22.5) 37 activemodel (= 4.2.11.3)
29 activesupport (= 3.2.22.5) 38 activesupport (= 4.2.11.3)
30 arel (~> 3.0.2) 39 arel (~> 6.0)
31 tzinfo (~> 0.3.29) 40 activesupport (4.2.11.3)
32 activeresource (3.2.22.5) 41 i18n (~> 0.7)
33 activemodel (= 3.2.22.5) 42 minitest (~> 5.1)
34 activesupport (= 3.2.22.5) 43 thread_safe (~> 0.3, >= 0.3.4)
35 activesupport (3.2.22.5) 44 tzinfo (~> 1.1)
36 i18n (~> 0.6, >= 0.6.4)
37 multi_json (~> 1.0)
38 acts-as-taggable-on (3.5.0) 45 acts-as-taggable-on (3.5.0)
39 activerecord (>= 3.2, < 5) 46 activerecord (>= 3.2, < 5)
40 acts_as_list (0.9.19) 47 acts_as_list (1.1.0)
41 activerecord (>= 3.0) 48 activerecord (>= 4.2)
42 arel (3.0.3) 49 arel (6.0.4)
43 awesome_nested_set (2.1.6) 50 awesome_nested_set (3.9.0)
44 activerecord (>= 3.0.0) 51 activerecord (>= 4.0.0, < 8.2)
45 builder (3.0.4) 52 builder (3.3.0)
46 climate_control (0.2.0) 53 climate_control (0.2.0)
47 cocaine (0.5.8) 54 cocaine (0.5.8)
48 climate_control (>= 0.0.3, < 1.0) 55 climate_control (>= 0.0.3, < 1.0)
49 coffee-rails (3.2.2) 56 coffee-rails (4.2.2)
50 coffee-script (>= 2.2.0) 57 coffee-script (>= 2.2.0)
51 railties (~> 3.2.0) 58 railties (>= 4.0.0)
52 coffee-script (2.4.1) 59 coffee-script (2.4.1)
53 coffee-script-source 60 coffee-script-source
54 execjs 61 execjs
55 coffee-script-source (1.12.2) 62 coffee-script-source (1.12.2)
56 concurrent-ruby (1.3.7) 63 concurrent-ruby (1.3.7)
64 crass (1.0.6)
57 erubis (2.7.0) 65 erubis (2.7.0)
58 exception_notification (4.1.1) 66 exception_notification (4.4.3)
59 actionmailer (>= 3.0.4) 67 actionmailer (>= 4.0, < 7)
60 activesupport (>= 3.0.4) 68 activesupport (>= 4.0, < 7)
61 execjs (2.9.0) 69 execjs (2.9.0)
62 ffi (1.15.5) 70 globalid (0.4.2)
63 globalize3 (0.3.1) 71 activesupport (>= 4.2.0)
64 activemodel (>= 3.0.0) 72 globalize (5.3.1)
65 activerecord (>= 3.0.0) 73 activemodel (>= 4.2, < 6.1)
66 paper_trail (~> 2) 74 activerecord (>= 4.2, < 6.1)
75 request_store (~> 1.0)
67 hike (1.2.3) 76 hike (1.2.3)
68 i18n (0.9.5) 77 i18n (0.9.5)
69 concurrent-ruby (~> 1.0) 78 concurrent-ruby (~> 1.0)
70 journey (1.0.4) 79 jquery-rails (4.6.1)
71 json (1.8.6) 80 rails-dom-testing (>= 1, < 3)
81 railties (>= 4.2.0)
82 thor (>= 0.14, < 2.0)
72 libxml-ruby (3.1.0) 83 libxml-ruby (3.1.0)
73 mail (2.5.5) 84 logger (1.5.3)
74 mime-types (~> 1.16) 85 loofah (2.20.0)
75 treetop (~> 1.4.8) 86 crass (~> 1.0.2)
76 mime-types (1.25.1) 87 nokogiri (>= 1.5.9)
88 mail (2.7.1)
89 mini_mime (>= 0.1.1)
90 mime-types (3.7.0)
91 logger
92 mime-types-data (~> 3.2025, >= 3.2025.0507)
93 mime-types-data (3.2026.0414)
94 mini_mime (1.1.2)
95 mini_portile2 (2.4.0)
96 minitest (5.15.0)
77 multi_json (1.15.0) 97 multi_json (1.15.0)
78 paper_trail (2.7.2) 98 nokogiri (1.10.10)
79 activerecord (~> 3.0) 99 mini_portile2 (~> 2.4.0)
80 railties (~> 3.0)
81 paperclip (3.5.4) 100 paperclip (3.5.4)
82 activemodel (>= 3.0.0) 101 activemodel (>= 3.0.0)
83 activesupport (>= 3.0.0) 102 activesupport (>= 3.0.0)
84 cocaine (~> 0.5.3) 103 cocaine (~> 0.5.3)
85 mime-types 104 mime-types
86 pg (0.17.1) 105 pg (0.17.1)
87 polyglot (0.3.5)
88 power_assert (3.0.1) 106 power_assert (3.0.1)
89 rack (1.4.7) 107 rack (1.6.13)
90 rack-cache (1.15.0)
91 rack (>= 0.4)
92 rack-ssl (1.3.4)
93 rack
94 rack-test (0.6.3) 108 rack-test (0.6.3)
95 rack (>= 1.0) 109 rack (>= 1.0)
96 rails (3.2.22.5) 110 rails (4.2.11.3)
97 actionmailer (= 3.2.22.5) 111 actionmailer (= 4.2.11.3)
98 actionpack (= 3.2.22.5) 112 actionpack (= 4.2.11.3)
99 activerecord (= 3.2.22.5) 113 actionview (= 4.2.11.3)
100 activeresource (= 3.2.22.5) 114 activejob (= 4.2.11.3)
101 activesupport (= 3.2.22.5) 115 activemodel (= 4.2.11.3)
102 bundler (~> 1.0) 116 activerecord (= 4.2.11.3)
103 railties (= 3.2.22.5) 117 activesupport (= 4.2.11.3)
104 railties (3.2.22.5) 118 bundler (>= 1.3.0, < 2.0)
105 actionpack (= 3.2.22.5) 119 railties (= 4.2.11.3)
106 activesupport (= 3.2.22.5) 120 sprockets-rails
107 rack-ssl (~> 1.3.2) 121 rails-deprecated_sanitizer (1.0.4)
122 activesupport (>= 4.2.0.alpha)
123 rails-dom-testing (1.0.9)
124 activesupport (>= 4.2.0, < 5.0)
125 nokogiri (~> 1.6)
126 rails-deprecated_sanitizer (>= 1.0.1)
127 rails-html-sanitizer (1.4.4)
128 loofah (~> 2.19, >= 2.19.1)
129 railties (4.2.11.3)
130 actionpack (= 4.2.11.3)
131 activesupport (= 4.2.11.3)
108 rake (>= 0.8.7) 132 rake (>= 0.8.7)
109 rdoc (~> 3.4) 133 thor (>= 0.18.1, < 2.0)
110 thor (>= 0.14.6, < 2.0)
111 rake (13.4.2) 134 rake (13.4.2)
112 rb-fsevent (0.11.2) 135 request_store (1.7.0)
113 rb-inotify (0.10.1) 136 rack (>= 1.4)
114 ffi (~> 1.0) 137 routing-filter (0.6.3)
115 rdoc (3.12.2) 138 actionpack (>= 4.2)
116 json (~> 1.4) 139 activesupport (>= 4.2)
117 routing-filter (0.4.0.1) 140 sass (3.2.19)
118 actionpack (< 4.2) 141 sass-rails (4.0.5)
119 sass (3.7.4) 142 railties (>= 4.0.0, < 5.0)
120 sass-listen (~> 4.0.0) 143 sass (~> 3.2.2)
121 sass-listen (4.0.0) 144 sprockets (~> 2.8, < 3.0)
122 rb-fsevent (~> 0.9, >= 0.9.4) 145 sprockets-rails (~> 2.0)
123 rb-inotify (~> 0.9, >= 0.9.7) 146 sprockets (2.12.5)
124 sass-rails (3.2.6)
125 railties (~> 3.2.0)
126 sass (>= 3.1.10)
127 tilt (~> 1.3)
128 sprockets (2.2.3)
129 hike (~> 1.2) 147 hike (~> 1.2)
130 multi_json (~> 1.0) 148 multi_json (~> 1.0)
131 rack (~> 1.0) 149 rack (~> 1.0)
132 tilt (~> 1.1, != 1.3.0) 150 tilt (~> 1.1, != 1.3.0)
151 sprockets-rails (2.3.3)
152 actionpack (>= 3.0)
153 activesupport (>= 3.0)
154 sprockets (>= 2.8, < 4.0)
133 test-unit (3.7.8) 155 test-unit (3.7.8)
134 power_assert 156 power_assert
135 thor (1.2.2) 157 thor (1.2.2)
158 thread_safe (0.3.6)
136 tilt (1.4.1) 159 tilt (1.4.1)
137 treetop (1.4.15) 160 tzinfo (1.2.11)
138 polyglot 161 thread_safe (~> 0.1)
139 polyglot (>= 0.3.1)
140 tzinfo (0.3.62)
141 uglifier (4.2.1) 162 uglifier (4.2.1)
142 execjs (>= 0.3.0, < 3) 163 execjs (>= 0.3.0, < 3)
143 unicorn (1.1.7) 164 unicorn (1.1.7)
@@ -150,17 +171,21 @@ PLATFORMS
150DEPENDENCIES 171DEPENDENCIES
151 acts-as-taggable-on (~> 3.5) 172 acts-as-taggable-on (~> 3.5)
152 acts_as_list 173 acts_as_list
153 awesome_nested_set (~> 2.1) 174 awesome_nested_set (~> 3.1)
154 chaos_calendar! 175 chaos_calendar!
155 coffee-rails (~> 3.2.1) 176 coffee-rails (~> 4.0)
156 exception_notification 177 exception_notification
157 globalize3 (~> 0.3.0) 178 globalize (~> 5.0)
179 jquery-rails
158 libxml-ruby 180 libxml-ruby
181 loofah (~> 2.20.0)
182 nokogiri (~> 1.10.10)
159 paperclip (~> 3.5) 183 paperclip (~> 3.5)
160 pg (~> 0.17.0) 184 pg (~> 0.17.0)
161 rails (= 3.2.22.5) 185 rails (= 4.2.11.3)
162 routing-filter (~> 0.3) 186 rails-html-sanitizer (~> 1.4.4)
163 sass-rails (~> 3.2.3) 187 routing-filter (~> 0.6)
188 sass-rails (~> 4.0)
164 test-unit (~> 3.5) 189 test-unit (~> 3.5)
165 uglifier (>= 1.0.3) 190 uglifier (>= 1.0.3)
166 unicorn (~> 1.1) 191 unicorn (~> 1.1)
diff --git a/bin/bundle b/bin/bundle
new file mode 100755
index 0000000..66e9889
--- /dev/null
+++ b/bin/bundle
@@ -0,0 +1,3 @@
1#!/usr/bin/env ruby
2ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
3load Gem.bin_path('bundler', 'bundle')
diff --git a/bin/rails b/bin/rails
index 7fd59cc..5191e69 100755
--- a/bin/rails
+++ b/bin/rails
@@ -1,29 +1,4 @@
1#!/usr/bin/env ruby 1#!/usr/bin/env ruby
2# frozen_string_literal: true 2APP_PATH = File.expand_path('../../config/application', __FILE__)
3 3require_relative '../config/boot'
4# 4require 'rails/commands'
5# This file was generated by Bundler.
6#
7# The application 'rails' is installed as part of a gem, and
8# this file is here to facilitate running it.
9#
10
11require "pathname"
12ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
13 Pathname.new(__FILE__).realpath)
14
15bundle_binstub = File.expand_path("../bundle", __FILE__)
16
17if File.file?(bundle_binstub)
18 if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
19 load(bundle_binstub)
20 else
21 abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
22Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
23 end
24end
25
26require "rubygems"
27require "bundler/setup"
28
29load Gem.bin_path("railties", "rails")
diff --git a/bin/rake b/bin/rake
new file mode 100755
index 0000000..1724048
--- /dev/null
+++ b/bin/rake
@@ -0,0 +1,4 @@
1#!/usr/bin/env ruby
2require_relative '../config/boot'
3require 'rake'
4Rake.application.run
diff --git a/bin/setup b/bin/setup
new file mode 100755
index 0000000..acdb2c1
--- /dev/null
+++ b/bin/setup
@@ -0,0 +1,29 @@
1#!/usr/bin/env ruby
2require 'pathname'
3
4# path to your application root.
5APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
6
7Dir.chdir APP_ROOT do
8 # This script is a starting point to setup your application.
9 # Add necessary setup steps to this file:
10
11 puts "== Installing dependencies =="
12 system "gem install bundler --conservative"
13 system "bundle check || bundle install"
14
15 # puts "\n== Copying sample files =="
16 # unless File.exist?("config/database.yml")
17 # system "cp config/database.yml.sample config/database.yml"
18 # end
19
20 puts "\n== Preparing database =="
21 system "bin/rake db:setup"
22
23 puts "\n== Removing old logs and tempfiles =="
24 system "rm -f log/*"
25 system "rm -rf tmp/cache"
26
27 puts "\n== Restarting application server =="
28 system "touch tmp/restart.txt"
29end
diff --git a/config/application.rb b/config/application.rb
index cb92166..1a7f32b 100644
--- a/config/application.rb
+++ b/config/application.rb
@@ -56,6 +56,6 @@ module Cccms
56 config.i18n.default_locale = :de 56 config.i18n.default_locale = :de
57 57
58 config.filter_parameters += [:password, :password_confirmation] 58 config.filter_parameters += [:password, :password_confirmation]
59 config.serve_static_assets = true 59 config.serve_static_files = true
60 end 60 end
61end 61end
diff --git a/config/environments/development.rb b/config/environments/development.rb
index 94f216f..3813cab 100644
--- a/config/environments/development.rb
+++ b/config/environments/development.rb
@@ -17,5 +17,6 @@ Cccms::Application.configure do
17 config.action_mailer.raise_delivery_errors = false 17 config.action_mailer.raise_delivery_errors = false
18 18
19 config.active_support.deprecation = :log 19 config.active_support.deprecation = :log
20 config.serve_static_assets = true 20 config.serve_static_files = true
21 config.eager_load = false
21end 22end
diff --git a/config/environments/production.rb b/config/environments/production.rb
index 2f933de..6f2c5bd 100644
--- a/config/environments/production.rb
+++ b/config/environments/production.rb
@@ -13,6 +13,7 @@ Cccms::Application.configure do
13 config.log_level = :info 13 config.log_level = :info
14 14
15 config.active_support.deprecation = :notify 15 config.active_support.deprecation = :notify
16 config.eager_load = false
16 17
17 # Use a different logger for distributed setups 18 # Use a different logger for distributed setups
18 # config.logger = SyslogLogger.new 19 # config.logger = SyslogLogger.new
diff --git a/config/environments/test.rb b/config/environments/test.rb
index 728e147..3b2413e 100644
--- a/config/environments/test.rb
+++ b/config/environments/test.rb
@@ -1,32 +1,23 @@
1# Settings specified here will take precedence over those in config/environment.rb
2
3Cccms::Application.configure do 1Cccms::Application.configure do
4 2
5 # The test environment is used exclusively to run your application's
6 # test suite. You never need to work with it otherwise. Remember that
7 # your test database is "scratch space" for the test suite and is wiped
8 # and recreated between test runs. Don't rely on the data there!
9 config.cache_classes = true 3 config.cache_classes = true
10 4
11 # Log error messages when you accidentally call methods on nil. 5 # Log error messages when you accidentally call methods on nil.
12 config.whiny_nils = true 6 # config.whiny_nils = true # removed in Rails 4
13 7
14 # Show full error reports and disable caching
15 config.action_controller.consider_all_requests_local = true 8 config.action_controller.consider_all_requests_local = true
16 config.action_controller.perform_caching = false 9 config.action_controller.perform_caching = false
17 10
18 # Disable request forgery protection in test environment
19 config.action_controller.allow_forgery_protection = false 11 config.action_controller.allow_forgery_protection = false
20 12
21 # Tell Action Mailer not to deliver emails to the real world.
22 # The :test delivery method accumulates sent emails in the
23 # ActionMailer::Base.deliveries array.
24 config.action_mailer.delivery_method = :test 13 config.action_mailer.delivery_method = :test
25 14
26 # Use SQL instead of Active Record's schema dumper when creating the test database. 15 config.active_support.deprecation = :log
27 # This is necessary if your schema can't be completely dumped by the schema dumper, 16 config.active_support.test_order = :sorted
28 # like if you have constraints or database-specific column types 17
29 # config.active_record.schema_format = :sql 18 config.active_record.raise_in_transactional_callbacks = true
30 19
31 config.active_support.deprecation = :raise 20 config.eager_load = false
21 config.serve_static_files = true
22 config.static_cache_control = "public, max-age=3600"
32end 23end
diff --git a/config/routes.rb b/config/routes.rb
index 5e3eb3f..4a440c1 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -31,10 +31,11 @@ Cccms::Application.routes.draw do
31 end 31 end
32 end 32 end
33 33
34 match '/logout' => 'sessions#destroy', :as => :logout 34 match '/logout' => 'sessions#destroy', :as => :logout, :via => :delete
35 match '/login' => 'sessions#new', :as => :login 35 match '/login' => 'sessions#new', :as => :login, :via => :get
36 match 'admin/search' => 'admin#search', :as => :admin_search 36 match 'admin' => 'admin#index', :as => :admin, :via => :get
37 match 'search' => 'search#index', :as => :search 37 match 'admin/search' => 'admin#search', :as => :admin_search, :via => :get
38 match 'search' => 'search#index', :as => :search, :via => :get
38 39
39 resources :users 40 resources :users
40 41
@@ -46,12 +47,9 @@ Cccms::Application.routes.draw do
46 47
47 resource :session 48 resource :session
48 49
49 match 'rss/:action' => 'rss#index', :as => :rss 50 match 'rss/:action' => 'rss#index', :as => :rss, :via => [:get, :post]
50 match 'rss/:action.:format' => 'rss#index' 51 match 'rss/:action.:format' => 'rss#index', :via => [:get, :post]
51 52
52 match '/:controller(/:action(/:id))' 53 match 'galleries/*page_path' => 'content#render_gallery', :via => :get
53 match '/:controller(/:action(/:id.:format))' 54 match '/*page_path' => 'content#render_page', :as => :content, :via => :get
54
55 match 'galleries/*page_path' => 'content#render_gallery'
56 match '/*page_path' => 'content#render_page', :as => :content
57end 55end
diff --git a/test/test_helper.rb b/test/test_helper.rb
index 27e1f0d..549f594 100644
--- a/test/test_helper.rb
+++ b/test/test_helper.rb
@@ -3,7 +3,7 @@ require File.expand_path(File.dirname(__FILE__) + "/../config/environment")
3require 'rails/test_help' 3require 'rails/test_help'
4 4
5module ActiveRecord 5module ActiveRecord
6 class Fixtures 6 class FixtureSet
7 class << self 7 class << self
8 alias_method :original_create_fixtures, :create_fixtures 8 alias_method :original_create_fixtures, :create_fixtures
9 def create_fixtures(*args) 9 def create_fixtures(*args)