Skip to content

Commit

Permalink
Namespaced all admin controllers that inheristed from < BaseControlle…
Browse files Browse the repository at this point in the history
…r to explicitly inherit from Spree::Admin::BaseController
  • Loading branch information
beneggett authored and radar committed Jun 3, 2012
1 parent 25efab3 commit 86ea38c
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 13 deletions.
@@ -1,6 +1,6 @@
module Spree
module Admin
class ConfigurationsController < BaseController
class ConfigurationsController < Spree::Admin::BaseController

end
end
Expand Down
@@ -1,6 +1,6 @@
module Spree
module Admin
class GeneralSettingsController < BaseController
class GeneralSettingsController < Spree::Admin::BaseController
def show
@preferences = ['site_name', 'default_seo_title', 'default_meta_keywords',
'default_meta_description', 'site_url']
Expand Down
@@ -1,6 +1,6 @@
module Spree
module Admin
class ImageSettingsController < BaseController
class ImageSettingsController < Spree::Admin::BaseController
def show
styles = ActiveSupport::JSON.decode(Spree::Config[:attachment_styles])
@styles_list = styles.collect { |k, v| k }.join(", ")
Expand Down
@@ -1,6 +1,6 @@
module Spree
module Admin
class InventorySettingsController < BaseController
class InventorySettingsController < Spree::Admin::BaseController

def update
Spree::Config.set(params[:preferences])
Expand Down
@@ -1,6 +1,6 @@
module Spree
module Admin
class InventoryUnitsController < BaseController
class InventoryUnitsController < Spree::Admin::BaseController
end
end
end
2 changes: 1 addition & 1 deletion core/app/controllers/spree/admin/line_items_controller.rb
@@ -1,6 +1,6 @@
module Spree
module Admin
class LineItemsController < BaseController
class LineItemsController < Spree::Admin::BaseController

before_filter :load_order
before_filter :load_line_item, :only => [:destroy, :update]
Expand Down
@@ -1,6 +1,6 @@
module Spree
module Admin
class MailSettingsController < BaseController
class MailSettingsController < Spree::Admin::BaseController

def update
Spree::Config.set(params[:preferences])
Expand Down
2 changes: 1 addition & 1 deletion core/app/controllers/spree/admin/overview_controller.rb
@@ -1,7 +1,7 @@
# this clas was inspired (heavily) from the mephisto admin architecture
module Spree
module Admin
class OverviewController < BaseController
class OverviewController < Spree::Admin::BaseController
#todo, add rss feed of information that is happening

def index
Expand Down
2 changes: 1 addition & 1 deletion core/app/controllers/spree/admin/payments_controller.rb
@@ -1,6 +1,6 @@
module Spree
module Admin
class PaymentsController < BaseController
class PaymentsController < Spree::Admin::BaseController
before_filter :load_order, :only => [:create, :new, :index, :fire]
before_filter :load_payment, :except => [:create, :new, :index]
before_filter :load_data
Expand Down
2 changes: 1 addition & 1 deletion core/app/controllers/spree/admin/reports_controller.rb
@@ -1,6 +1,6 @@
module Spree
module Admin
class ReportsController < BaseController
class ReportsController < Spree::Admin::BaseController
before_filter :load_data
respond_to :html

Expand Down
2 changes: 1 addition & 1 deletion core/app/controllers/spree/admin/shipments_controller.rb
@@ -1,6 +1,6 @@
module Spree
module Admin
class ShipmentsController < BaseController
class ShipmentsController < Spree::Admin::BaseController
before_filter :load_order
before_filter :load_shipment, :only => [:destroy, :edit, :update, :fire]
before_filter :load_shipping_methods, :except => [:country_changed, :index]
Expand Down
@@ -1,6 +1,6 @@
module Spree
module Admin
class TaxSettingsController < BaseController
class TaxSettingsController < Spree::Admin::BaseController

def update
Spree::Config.set(params[:preferences])
Expand Down
2 changes: 1 addition & 1 deletion core/app/controllers/spree/admin/taxons_controller.rb
@@ -1,6 +1,6 @@
module Spree
module Admin
class TaxonsController < BaseController
class TaxonsController < Spree::Admin::BaseController

respond_to :html, :json, :js

Expand Down

0 comments on commit 86ea38c

Please sign in to comment.