Skip to content
This repository has been archived by the owner on Apr 21, 2022. It is now read-only.

raise_on_save_failre = false only works for development environment #11

Open
eLod opened this issue Mar 17, 2011 · 0 comments
Open

raise_on_save_failre = false only works for development environment #11

eLod opened this issue Mar 17, 2011 · 0 comments

Comments

@eLod
Copy link

eLod commented Mar 17, 2011

The railtie sets ::Sequel::Model.raise_on_save_failure = false (in config.after_initialize block at sequel-rails/railtie), but except for development environment the models are already loaded at this stage, thus all the models have raise_on_save_failure set to true.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant