Commit 4655a6eb2c6783580b6bf60ffd3c985981fbb6ea
1 parent
19edc232
Exists in
colab
and in
4 other branches
Updated kalibro_client and removed redundant deprecated persisted and update methods
Showing
2 changed files
with
1 additions
and
11 deletions
Show diff stats
Gemfile.lock
app/models/concerns/kalibro_record.rb
| ... | ... | @@ -5,14 +5,4 @@ module KalibroRecord |
| 5 | 5 | include ActiveModel::Conversion |
| 6 | 6 | extend ActiveModel::Naming |
| 7 | 7 | delegate :url_helpers, to: 'Rails.application.routes' |
| 8 | - | |
| 9 | - def persisted? | |
| 10 | - self.class.exists?(self.id) unless self.id.nil? | |
| 11 | - end | |
| 12 | - | |
| 13 | - #TODO maybe we don't need this method anymore | |
| 14 | - def update(attributes = {}) | |
| 15 | - self.save | |
| 16 | - end | |
| 17 | - | |
| 18 | 8 | end | ... | ... |