Sha256: b1c94003045fb5ba4aec1b2f4d7585f6af1a9d75b5b1139b0c998546877eae57

Contents?: true

Size: 265 Bytes

Versions: 7

Compression:

Stored size: 265 Bytes

Contents

module DiscoApp
  class Session < ActiveRecord::SessionStore::Session

    before_save :set_shop_id!

    private

      def set_shop_id!
        return false unless loaded?

        write_attribute(:shop_id, data[:shopify] || data['shopify'])
      end

  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
disco_app-0.17.0 lib/disco_app/session.rb
disco_app-0.18.0 lib/disco_app/session.rb
disco_app-0.18.2 lib/disco_app/session.rb
disco_app-0.18.3 lib/disco_app/session.rb
disco_app-0.18.6 lib/disco_app/session.rb
disco_app-0.18.4 lib/disco_app/session.rb
disco_app-0.18.1 lib/disco_app/session.rb