【发布时间】:2018-01-01 07:01:49
【问题描述】:
在一个模型中,我有以下范围关联:
customer.rb:38
has_many :payment_informations, class_name: 'Customer::PaymentInformation', dependent: :destroy, -> { order(position: :asc) }
错误:
语法错误,意外 '\n',期待 =>
--
我在这里做错了什么?该错误仅在确定关联范围时发生。
【问题讨论】:
标签: ruby-on-rails ruby scope associations ruby-on-rails-5