Skip to content

Commit

Permalink
DEPRECATION WARNING: Passing the class as positional argument is depr…
Browse files Browse the repository at this point in the history
…ecated and will be removed in Rails 7.2.
  • Loading branch information
Eric-Guo committed Dec 30, 2023
1 parent 6bfba32 commit 2e9a541
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Feel free to inherit from other class like ActiveModel::Model
class WechatSession < ActiveRecord::Base
validates :openid, presence: true, uniqueness: true
serialize :hash_store, Hash
serialize :hash_store, type: Hash

# called by wechat gems when user request session
def self.find_or_initialize_session(request_message)
Expand Down

0 comments on commit 2e9a541

Please sign in to comment.