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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5255a6ff3088a1763cd4d1cd5423c7a7ef77ac54a1b39993349a14118b08755d
|
|
4
|
+
data.tar.gz: 01bab35fb50942c345de4457f82cd5ea036bb37d93c21015964f4f499f77f15b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
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
|