Skip to content

Instantly share code, notes, and snippets.

@aldesantis
Last active January 24, 2016 17:46
Show Gist options
  • Save aldesantis/b30c3086cd0a2647160a to your computer and use it in GitHub Desktop.
Save aldesantis/b30c3086cd0a2647160a to your computer and use it in GitHub Desktop.
class Model < ActiveRecord::Base
validates :attribute1, :attribute2, divisibility: { by: 0.5 }
validates :attribute3, divisibility: { by: 0.75 }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment