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_all ⇒ Object
8 9 10 |
# File 'app/models/open_places/concerns/read_only_model.rb', line 8 def self.delete_all raise ActiveRecord::ReadOnlyRecord end |
.destroy_all ⇒ Object
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
#delete ⇒ Object
12 13 14 |
# File 'app/models/open_places/concerns/read_only_model.rb', line 12 def delete raise ActiveRecord::ReadOnlyRecord end |
#destroy ⇒ Object
20 21 22 |
# File 'app/models/open_places/concerns/read_only_model.rb', line 20 def destroy raise ActiveRecord::ReadOnlyRecord end |
#readonly? ⇒ Boolean
4 5 6 |
# File 'app/models/open_places/concerns/read_only_model.rb', line 4 def readonly? true end |