Sha256: de8c45975d454632ae9bd945bef132cee056ccb7ed3df6797273c67eac9aa53e
Contents?: true
Size: 414 Bytes
Versions: 67
Compression:
Stored size: 414 Bytes
Contents
module Spree module Admin class StockLocationsController < ResourceController before_action :set_country, only: :new private def set_country @stock_location.country = Spree::Country.default rescue ActiveRecord::RecordNotFound flash[:error] = Spree.t(:stock_locations_need_a_default_country) redirect_to admin_stock_locations_path end end end end
Version data entries
67 entries across 67 versions & 1 rubygems