Skip to content

Commit

Permalink
Fix rspec
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric-Guo committed Oct 25, 2024
1 parent 69f87fe commit f82a163
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/generators/wechat/templates/app/models/wechat_session.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# Feel free to inherit from other class like ActiveModel::Model
class WechatSession < ActiveRecord::Base
validates :openid, presence: true, uniqueness: true
# don't using serialize if possible, see README `on :fallback`
serialize :hash_store, type: Hash, coder: YAML, yaml: { permitted_classes: [String] }

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

0 comments on commit f82a163

Please sign in to comment.