Skip to content

Instantly share code, notes, and snippets.

@naveedkakal
Created August 18, 2015 02:22
Show Gist options
  • Save naveedkakal/9101b28dbfc502f0c276 to your computer and use it in GitHub Desktop.
Save naveedkakal/9101b28dbfc502f0c276 to your computer and use it in GitHub Desktop.
# Override ActiveRecord#readonly?
def readonly?
my_locking_conditions? || super
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment