Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auth take two:: Fixes /admin/configuration not loading correctly in admin area & /admin/general_settings not finding navigation helper #1624

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -1,6 +1,6 @@
module Spree module Spree
module Admin module Admin
class ConfigurationsController < BaseController class ConfigurationsController < Spree::Admin::BaseController


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


def update def update
Spree::Config.set(params[:preferences]) Spree::Config.set(params[:preferences])
Expand Down
@@ -1,6 +1,6 @@
module Spree module Spree
module Admin module Admin
class InventoryUnitsController < BaseController class InventoryUnitsController < Spree::Admin::BaseController
end end
end 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 Spree
module Admin module Admin
class LineItemsController < BaseController class LineItemsController < Spree::Admin::BaseController


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


def update def update
Spree::Config.set(params[:preferences]) 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 # this clas was inspired (heavily) from the mephisto admin architecture
module Spree module Spree
module Admin module Admin
class OverviewController < BaseController class OverviewController < Spree::Admin::BaseController
#todo, add rss feed of information that is happening #todo, add rss feed of information that is happening


def index 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 Spree
module Admin module Admin
class PaymentsController < BaseController class PaymentsController < Spree::Admin::BaseController
before_filter :load_order, :only => [:create, :new, :index, :fire] before_filter :load_order, :only => [:create, :new, :index, :fire]
before_filter :load_payment, :except => [:create, :new, :index] before_filter :load_payment, :except => [:create, :new, :index]
before_filter :load_data 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 Spree
module Admin module Admin
class ReportsController < BaseController class ReportsController < Spree::Admin::BaseController
before_filter :load_data before_filter :load_data
respond_to :html 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 Spree
module Admin module Admin
class ShipmentsController < BaseController class ShipmentsController < Spree::Admin::BaseController
before_filter :load_order before_filter :load_order
before_filter :load_shipment, :only => [:destroy, :edit, :update, :fire] before_filter :load_shipment, :only => [:destroy, :edit, :update, :fire]
before_filter :load_shipping_methods, :except => [:country_changed, :index] before_filter :load_shipping_methods, :except => [:country_changed, :index]
Expand Down
@@ -1,6 +1,6 @@
module Spree module Spree
module Admin module Admin
class TaxSettingsController < BaseController class TaxSettingsController < Spree::Admin::BaseController


def update def update
Spree::Config.set(params[:preferences]) 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 Spree
module Admin module Admin
class TaxonsController < BaseController class TaxonsController < Spree::Admin::BaseController


respond_to :html, :json, :js respond_to :html, :json, :js


Expand Down