diff options
| author | Miquel Sabaté Solà <msabate@suse.com> | 2024-03-14 22:17:12 +0100 |
|---|---|---|
| committer | Miquel Sabaté Solà <msabate@suse.com> | 2024-03-14 22:20:09 +0100 |
| commit | 8818aa680c2ddaf1204e297fe27f088499eea74f (patch) | |
| tree | 1888efcf1ffc138c848584058299454510544188 /app | |
| parent | c232356d490cefb44dd96b400961fe26a85ce183 (diff) | |
| download | operum-8818aa680c2ddaf1204e297fe27f088499eea74f.tar.gz operum-8818aa680c2ddaf1204e297fe27f088499eea74f.zip | |
Dropped redundant 'location' column
Looks like I messed up later on and kept two columns which were
basically referring to the same thing.
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
Diffstat (limited to 'app')
| -rw-r--r-- | app/controllers/things_controller.rb | 4 | ||||
| -rw-r--r-- | app/models/thing.rb | 1 | ||||
| -rw-r--r-- | app/views/things/_form.html.erb | 5 |
3 files changed, 2 insertions, 8 deletions
diff --git a/app/controllers/things_controller.rb b/app/controllers/things_controller.rb index 450b409..e994a3d 100644 --- a/app/controllers/things_controller.rb +++ b/app/controllers/things_controller.rb @@ -63,7 +63,7 @@ class ThingsController < ApplicationController def thing_params params.require(:thing).permit(:target, :title, :publisher, :address, :year, :url, :access, - :authors, :location, :insideof, :pages, :rate, :status, :kind, - :bought_at, :editors, :note, :where_is_it, tag_ids: []) + :authors, :insideof, :pages, :rate, :status, :kind, :bought_at, + :editors, :note, :where_is_it, tag_ids: []) end end diff --git a/app/models/thing.rb b/app/models/thing.rb index 5c758fb..1f1e4e4 100644 --- a/app/models/thing.rb +++ b/app/models/thing.rb @@ -23,7 +23,6 @@ class Thing < ApplicationRecord .or(where('publisher LIKE ?', "%#{text}%")) .or(where('address LIKE ?', "%#{text}%")) .or(where('url LIKE ?', "%#{text}%")) - .or(where('location LIKE ?', "%#{text}%")) .or(where('insideof LIKE ?', "%#{text}%")) .or(where('pages LIKE ?', "%#{text}%")) .or(where('note LIKE ?', "%#{text}%")) diff --git a/app/views/things/_form.html.erb b/app/views/things/_form.html.erb index da90302..0569cc4 100644 --- a/app/views/things/_form.html.erb +++ b/app/views/things/_form.html.erb @@ -50,11 +50,6 @@ </div> <div> - <%= form.label :location %> - <%= form.text_field :location %> - </div> - - <div> <%= form.label :insideof %> <%= form.text_field :insideof %> </div> |
