Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

file 14 lines (13 sloc) 0.444 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14
class MoreGeneralSettingsExtension < Spree::Extension
  version "1.0"
  description "Describe your extension here"
  url "http://yourwebsite.com/more_general_settings"

  def activate
    Admin::GeneralSettingsController.class_eval do
      before_filter :update_more_general_settings, :only => :update
      def update_more_general_settings
        Spree::MoreGeneralSettings::Config.set(params[:more_preferences])
      end
    end
  end
end
Something went wrong with that request. Please try again.