inline_forms_installer 8.1.44 → 8.1.45

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 05faf66c00626e9e80aba76c5959a1380a3648c377a48dc8ff0468801fa48385
4
- data.tar.gz: ccf0a1aa526a4c29297445ccd0c0358f7263a66e118f4de9d9442a96e410516a
3
+ metadata.gz: 5255a6ff3088a1763cd4d1cd5423c7a7ef77ac54a1b39993349a14118b08755d
4
+ data.tar.gz: 01bab35fb50942c345de4457f82cd5ea036bb37d93c21015964f4f499f77f15b
5
5
  SHA512:
6
- metadata.gz: dfa4f8cac533957d5365680b70800d434c5ae570a7e6f2fb9e53d899fb0606c8fe913b801ca78de8e61cc52adb1e2afb4f733e881a84a061058e175217c47be1
7
- data.tar.gz: 968cbbfc4ccedadbad08bd9d424995ca4ca77983456b4ede186a0569f34b444434601d995efd8207737e00b64089524250dc382c378040cbe45405819c4df26d
6
+ metadata.gz: e1b8601da15fac7ccc67fcc9e88af7e1607198f8dd628ad7dd2e6bcc43e5e4eb39b2d08e982c3a5a8254dc5445f01229860b3e2a413b1e0ad37a179b1f8235e6
7
+ data.tar.gz: 28a31ae7fad39f84ba078407fd1386d4a59a04f14be0f1ecd2976600874321463514e8b3acbfb1c45f959bd8abc57f6d3a7dbc150fb0a9d30b409c4fca6db6b3
@@ -429,11 +429,7 @@ create_file user_cfg.model_path, <<-USER_MODEL.strip_heredoc
429
429
  # via `#{user_cfg.class_name}.inline_forms_list`). Avoids `default_scope`
430
430
  # so callers can `unscope`/`reorder` cleanly when needed.
431
431
  scope :inline_forms_list, -> { order(:name, :id) }
432
- # Search box on /#{user_cfg.plural_route} filters by name OR email. Without this
433
- # the controller would `merge(ApplicationRecord.inline_forms_search(q))`,
434
- # which is the no-op `all` fallback, and the query string would be silently
435
- # ignored.
436
- scope :inline_forms_search, ->(q) { where("name LIKE :q OR email LIKE :q", q: "%\#{q}%") }
432
+ inline_forms_search_on :name, :email
437
433
 
438
434
  def _presentation
439
435
  "\#{name}"
@@ -865,14 +861,6 @@ if ENV['install_schema_edit'] == 'true'
865
861
  # policy as the main install).
866
862
  run "bundle exec rails g inline_forms_schema_edit:install"
867
863
  run "bundle exec rake db:migrate" if ENV['using_sqlite'] == 'true'
868
-
869
- if File.exist?("app/views/_inline_forms_tabs.html.erb")
870
- inject_into_file "app/views/_inline_forms_tabs.html.erb",
871
- " <li class=\"menu-text\">\n" \
872
- " <a href=\"/schema/new\" data-turbo=\"false\" title=\"Add a field to a model (dev only)\">+ field</a>\n" \
873
- " </li>\n",
874
- before: " </ul>\n </div>\n <div class=\"top-bar-right\">"
875
- end
876
864
  end
877
865
 
878
866
  # Git
@@ -1,7 +1,7 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
 
3
3
  module InlineFormsInstaller
4
- VERSION = "8.1.44"
4
+ VERSION = "8.1.45"
5
5
 
6
6
  # Canonical bare Ruby version (must match gemspec `required_ruby_version`).
7
7
  # Written verbatim into generated apps' `.ruby-version` for rbenv/chruby/asdf/
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inline_forms_installer
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.1.44
4
+ version: 8.1.45
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ace Suares