Module: RemoteDb::Concerns::ReadOnlyModel::ClassMethods

Defined in:
lib/remote_db/concerns/read_only_model.rb

Instance Method Summary collapse

Instance Method Details

#delete(id_or_array) ⇒ Object

Raises:

  • (ActiveRecord::ReadOnlyRecord)


11
12
13
# File 'lib/remote_db/concerns/read_only_model.rb', line 11

def delete(id_or_array)
  raise ActiveRecord::ReadOnlyRecord
end

#delete_all(conditions = nil) ⇒ Object

Raises:

  • (ActiveRecord::ReadOnlyRecord)


15
16
17
# File 'lib/remote_db/concerns/read_only_model.rb', line 15

def delete_all(conditions = nil)
  raise ActiveRecord::ReadOnlyRecord
end

#update_all(conditions = nil) ⇒ Object

Raises:

  • (ActiveRecord::ReadOnlyRecord)


19
20
21
# File 'lib/remote_db/concerns/read_only_model.rb', line 19

def update_all(conditions = nil)
  raise ActiveRecord::ReadOnlyRecord
end