-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
В development-е работает, а в production нет. #21
Comments
Секретиков нет) Если gemfile.lock одинаков и там и там, и схема идентичная, то такого не может быть |
@dapi Можешь больше инфы предоставить? gist? |
Антон, может дело в предзагрузке и кешировании кода? Может в каком геме аналогичный метод определен и они конфликтуют (кто кого перетрут). Гист в таком случае вряд ли поможет. |
Closing due to inactivity. |
А проблема-то есть |
Гем реально не работает в продакшене, потому что инициализируется позже загрузки моделей. Вы сами-то как им пользуетесь? |
Конкретно если cache_classes=true то эта строчка никогда не выполняется- https://github.com/kaize/valle/blob/master/lib/valle/railtie.rb#L4 Quick fix: if Rails.configuration.cache_classes
ActiveRecord::Base.subclasses.select(&:table_exists?).each do |model|
Valle::Manager.add_validators(model)
end
end |
вопрос снят этим комитом - 0025615 Спасибо! |
Один и тот-же код в developmеnt-е нормально ловит валидацию на длину строки. А в продавшее нет. И там и там postgresql. Может есть секретик какой?
The text was updated successfully, but these errors were encountered: