Class: ActiveRecord::Base

Inherits:
Object
  • Object
show all
Defined in:
app/models/active_record_read_only_extension.rb

Instance Method Summary collapse

Instance Method Details

#readonly?Boolean

Returns:

  • (Boolean)


31
32
33
# File 'app/models/active_record_read_only_extension.rb', line 31

def readonly?
  ActiveRecord::Base.read_only_mode?
end