在運行時的方法中,有沒有辦法知道在子類中是否通過super調用了該方法?例如。 module SuperDetector
def via_super?
# what goes here?
end
end
class Foo
include SuperDetector
def bar
via_super? ? 'super!' :
我正在使用rails 4,ruby 2.3並且有問題。如何解決這個錯誤? PG::UndefinedTable: ERROR: relation "carrinho" does not exist LINE 1: SELECT "carrinho".* FROM "carrinho" WHERE "carrinho"."id" I... ^: SELECT "carrinho".* FROM "c