module A class B vs class A::B

16 views
Skip to first unread message

fugee ohu

unread,
Feb 5, 2018, 12:14:59 AM2/5/18
to Ruby on Rails: Talk
Are those two the same thing? I'm overriding a gem model so I put it in a namespace folder under models but what about modifying the file? Should I leave the module statement the way it is or remove it and replace the class name with the same prefix Module::Model

André Orvalho

unread,
Feb 19, 2018, 5:19:01 AM2/19/18
to Ruby on Rails: Talk
Could you post some code about what you need to change and how you were thinking of changing it?
Reply all
Reply to author
Forward
0 new messages