Skip to content

Commit 7eef12b

Browse files
committed
[RAILS] Fixed incorrect regex for adding "kaminari" into the Gemfile in the 02-pretty.rb template
Related: elastic#276
1 parent 27feafc commit 7eef12b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

elasticsearch-rails/lib/rails/templates/02-pretty.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343

4444
# NOTE: Kaminari has to be loaded before Elasticsearch::Model so the callbacks are executed
4545
#
46-
insert_into_file 'Gemfile', <<-CODE, before: "gem 'elasticsearch'"
46+
insert_into_file 'Gemfile', <<-CODE, before: /gem "elasticsearch".+$/
4747
4848
# NOTE: Kaminari has to be loaded before Elasticsearch::Model so the callbacks are executed
4949
gem 'kaminari'

0 commit comments

Comments
 (0)