Skip to content

Commit 79edfdf

Browse files
committed
fix fix version check
1 parent 5efe9c3 commit 79edfdf

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

test/dummy/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"rails-erb-loader": "^4.0.0",
2222
"react": "^15.4.2",
2323
"react-dom": "^15.4.2",
24-
"react_ujs": "^1.0.0",
24+
"react_ujs": "^2.0.2",
2525
"sass-loader": "^6.0.3",
2626
"style-loader": "^0.16.1",
2727
"webpack": "^2.3.3",

test/dummy/yarn.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3450,9 +3450,9 @@ react@^15.4.2:
34503450
loose-envify "^1.1.0"
34513451
object-assign "^4.1.0"
34523452

3453-
react_ujs@^1.0.0:
3454-
version "1.0.0"
3455-
resolved "https://registry.yarnpkg.com/react_ujs/-/react_ujs-1.0.0.tgz#33fbae8cd949fbdd28914d7a0b69bf3c078aa4be"
3453+
react_ujs@^2.0.2:
3454+
version "2.0.2"
3455+
resolved "https://registry.yarnpkg.com/react_ujs/-/react_ujs-2.0.2.tgz#0020f38fa2e47a04c03faa080325324bfa6d1f0b"
34563456

34573457
read-cache@^1.0.0:
34583458
version "1.0.0"

test/test_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def when_stateful_js_context_available
105105
module ParamsHelper
106106
# Normalize params for Rails 5.1+
107107
def query_params(params)
108-
if Rails.gem_version.to_s > "5.0"
108+
if Rails::VERSION::MAJOR > 4
109109
{params: params}
110110
else
111111
params

0 commit comments

Comments
 (0)