Gem action_store 问题

hzyhzy · 2020年04月11日 · 4963 次阅读

user.rb

action_store :x, :xx, class_name: 'A::B'

action-store/lib/action_store/mixin.rb line 37

 klass_name = opts[:class_name] || name.to_s.classify
# defined_actions => [{target_type: 'A::B', ...}]
User.create.create_action(:x, Xx.create)

action-store/lib/action_store/mixin.rb line 29

 name = target_type.to_s.singularize.underscore
# name = 'A/B'
# find_defined_action(:x, 'A::B') => nil

@huacnlee

暂无回复。
需要 登录 后方可回复, 如果你还没有账号请 注册新账号