Sha256: 5b432083e8080f8091aef09447e86a519d2e9ef0b76a3c7d15e311be50639efe

Contents?: true

Size: 264 Bytes

Versions: 58

Compression:

Stored size: 264 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

58 entries across 58 versions & 1 rubygems

Version Path
disco_app-0.9.7 lib/disco_app/session.rb
disco_app-0.9.8 lib/disco_app/session.rb
disco_app-0.9.9 lib/disco_app/session.rb
disco_app-0.9.10 lib/disco_app/session.rb
disco_app-0.9.11 lib/disco_app/session.rb
disco_app-0.10.0 lib/disco_app/session.rb
disco_app-0.10.1 lib/disco_app/session.rb
disco_app-0.10.2 lib/disco_app/session.rb
disco_app-0.10.3 lib/disco_app/session.rb
disco_app-0.10.4 lib/disco_app/session.rb
disco_app-0.10.5 lib/disco_app/session.rb
disco_app-0.11.0 lib/disco_app/session.rb
disco_app-0.11.1 lib/disco_app/session.rb
disco_app-0.12.0 lib/disco_app/session.rb
disco_app-0.12.1 lib/disco_app/session.rb
disco_app-0.12.5 lib/disco_app/session.rb
disco_app-0.12.6 lib/disco_app/session.rb
disco_app-0.12.7 lib/disco_app/session.rb
disco_app-0.13.0 lib/disco_app/session.rb
disco_app-0.13.1 lib/disco_app/session.rb