#766 ✓resolved
garrett

[dm-validations] : ability to disable auto validations in a block

Reported by garrett | January 14th, 2009 @ 04:39 AM | in 0.10.0

class Model include DataMapper::Resource

property :id, Serial

without_auto_validations do property :x, String property :y, String end

property :name, String end

Comments and changes to this ticket

  • Michael Klishin (antares)

    Michael Klishin (antares) January 14th, 2009 @ 04:46 AM

    • State changed from “unconfirmed” to “accepted”

    What about full blown default_property_options method that cold be used just like default_repository in your models? This will save us from adding a method like without_* for every single option ;) It actually would be simpler to both implement and debug since scope would not change.

  • Michael Klishin (antares)

    Michael Klishin (antares) March 24th, 2009 @ 02:08 PM

    • Milestone set to 0.10.0
    • State changed from “accepted” to “confirmed”

    Since I rewrote -validations specs suite, I will add this little feature soon but would have to rewrite it. it's totally fine though, thanks for inspiration!

  • Michael Klishin (antares)

    Michael Klishin (antares) March 24th, 2009 @ 03:49 PM

    • State changed from “confirmed” to “resolved”

    Implemented in ad33f28 (datamapper/dm-core/next), thank you.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Pages