How to access a new spree model

五迷三道 提交于 2019-12-10 12:03:15

问题


I am new to spree, I have created a new spree model

module Spree    
    class VerificationDocument < ActiveRecord::Base

    end
end

When I am trying to access the model from console it's showing an error

NameError: uninitialized constant Spree::VerificationDocument

Not sure what I am missing.

来源:https://stackoverflow.com/questions/35466675/how-to-access-a-new-spree-model

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!