skipping fixture load on controllers that don't need it
Oleg
committed May 20, 2011
commit 98c90d8a688fc02097e8d2362d539df7bcd320fc
Showing 3
changed files with
4 additions
and 2 deletions
app/controllers/cms_admin/sites_controller.rb
+2
-1
| @@ | @@ -1,6 +1,7 @@ |
| class CmsAdmin::SitesController < CmsAdmin::BaseController | |
| - | skip_before_filter :load_admin_cms_site |
| + | skip_before_filter :load_admin_cms_site, |
| + | :load_fixtures |
| before_filter :build_cms_site, :only => [:new, :create] | |
| before_filter :load_cms_site, :only => [:edit, :update, :destroy] | |
app/controllers/cms_admin/uploads_controller.rb
+2
-0
| @@ | @@ -1,5 +1,7 @@ |
| class CmsAdmin::UploadsController < CmsAdmin::BaseController | |
| + | skip_before_filter :load_fixtures |
| + | |
| before_filter :load_cms_upload, :only => :destroy | |
| def index | |
test/integration/fixtures_test.rb
+0
-1
| @@ | @@ -55,7 +55,6 @@ class FixturesTest < ActionDispatch::IntegrationTest |
| end | |
| end | |
| end | |
| - | |
| end | |
| end | |
| \ No newline at end of file | |