Module: ActiveRecordReadOnlyExtension

Extended by:
ActiveSupport::Concern
Defined in:
app/models/active_record_read_only_extension.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#destroyObject



4
5
6
7
# File 'app/models/active_record_read_only_extension.rb', line 4

def destroy
  raise 'Read-Only Mode' if readonly?
  super
end