Sha256: c4c82318bf51889df8a4de071a2fc55e688c84ecf5e81505e308bde4617821f0

Contents?: true

Size: 209 Bytes

Versions: 5

Compression:

Stored size: 209 Bytes

Contents

Spree::Admin::ResourceController.class_eval do
  around_action :set_time_zone, if: :spree_current_user

  private

  def set_time_zone(&block)
    Time.use_zone(spree_current_user.time_zone, &block)
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
solidus_auction-0.0.6 app/controllers/spree/admin/resource_controller_decorator.rb
solidus_auction-0.0.5 app/controllers/spree/admin/resource_controller_decorator.rb
solidus_auction-0.0.4 app/controllers/spree/admin/resource_controller_decorator.rb
solidus_auction-0.0.3 app/controllers/spree/admin/resource_controller_decorator.rb
solidus_auction-0.0.1 app/controllers/spree/admin/resource_controller_decorator.rb