Module: ArtirixDataModels::Model::ActiveModelCompliant
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/artirix_data_models/model.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
- #destroyed? ⇒ Boolean
- #errors ⇒ Object
- #new_record? ⇒ Boolean
- #persisted? ⇒ Boolean
- #save ⇒ Object
- #valid? ⇒ Boolean
Instance Method Details
#destroyed? ⇒ Boolean
107 108 109 |
# File 'lib/artirix_data_models/model.rb', line 107 def destroyed? false end |
#errors ⇒ Object
111 112 113 114 115 116 117 118 119 120 121 122 123 |
# File 'lib/artirix_data_models/model.rb', line 111 def errors obj = Object.new def obj.[](key) [] end def obj.() [] end obj end |
#new_record? ⇒ Boolean
103 104 105 |
# File 'lib/artirix_data_models/model.rb', line 103 def new_record? false end |
#persisted? ⇒ Boolean
95 96 97 |
# File 'lib/artirix_data_models/model.rb', line 95 def persisted? true end |
#save ⇒ Object
91 92 93 |
# File 'lib/artirix_data_models/model.rb', line 91 def save raise Errors::ReadOnlyModelError end |
#valid? ⇒ Boolean
99 100 101 |
# File 'lib/artirix_data_models/model.rb', line 99 def valid? true end |