Don't Reload Class In Rails' Development Environment
Join the DZone community and get the full member experience.Join For Free
Override the reloadable? method in a class to keep Rails dev environment from reloading it. Use this if you're getting "constant uninitialized" on a custom class.
def self.reloadable? false end
Opinions expressed by DZone contributors are their own.