Module: OpenPlaces::Concerns::ReadOnlyModel

Extended by:
ActiveSupport::Concern
Defined in:
app/models/open_places/concerns/read_only_model.rb

Overview

app/models/mixins/read_only_model.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.delete_allObject

Raises:

  • (ActiveRecord::ReadOnlyRecord)


8
9
10
# File 'app/models/open_places/concerns/read_only_model.rb', line 8

def self.delete_all
  raise ActiveRecord::ReadOnlyRecord
end

.destroy_allObject

Raises:

  • (ActiveRecord::ReadOnlyRecord)


16
17
18
# File 'app/models/open_places/concerns/read_only_model.rb', line 16

def self.destroy_all
  raise ActiveRecord::ReadOnlyRecord
end

Instance Method Details

#deleteObject

Raises:

  • (ActiveRecord::ReadOnlyRecord)


12
13
14
# File 'app/models/open_places/concerns/read_only_model.rb', line 12

def delete
  raise ActiveRecord::ReadOnlyRecord
end

#destroyObject

Raises:

  • (ActiveRecord::ReadOnlyRecord)


20
21
22
# File 'app/models/open_places/concerns/read_only_model.rb', line 20

def destroy
  raise ActiveRecord::ReadOnlyRecord
end

#readonly?Boolean

Returns:

  • (Boolean)


4
5
6
# File 'app/models/open_places/concerns/read_only_model.rb', line 4

def readonly?
  true
end