在模型我有以下範圍的關聯:滑軌:作用域相關聯,導致錯誤
customer.rb:38
has_many :payment_informations, class_name: 'Customer::PaymentInformation', dependent: :destroy, -> { order(position: :asc) }
錯誤:
syntax error, unexpected '\n', expecting =>
-
我在這裏做錯了什麼?這個錯誤只發生在組建範圍時。
好......... :) – jonhue