moirai 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c5a4c92d52a38c7cbae4d8216b9421d15f6b2db58328ef8f8df5b46da0c97785
4
- data.tar.gz: c23ab52e4a50ee7478abdf41cee44fe04daa7760c1f69179cc7195ca58f70ead
3
+ metadata.gz: b1ccb1de7355ee89f7ab7c774ef50df313d18e76073cdfca05274c90ffc1b00e
4
+ data.tar.gz: 2baade3d17dd785693a3770687bf16555624508936db76cc65346ad83f143319
5
5
  SHA512:
6
- metadata.gz: 1afbdd4d152ddc16ce221e2918092feb2a0e2437af4bce78163b5b2fc9973ebe504b8f42650ffebe56b982f3f646c0602cd9b50c68e17b48c08552b7eed26fd8
7
- data.tar.gz: 78dfa1fafe07d6a51ee10d3afe111767d3ede63cb254b408c44745369aa5a27c5e84922f613e4b7ccdfe8610aa9f7894fe6d07f8f833404c8d0a40a1b90da5bd
6
+ metadata.gz: 86aaf468fff8de8cdd1c0de8f3af40bccc4fab4ef14c752bea1773d5c5cb7dd3e0a2a1d89616c295265a1d9407398f3c7d31a5a6c8b04185358b02202cebf7c0
7
+ data.tar.gz: d822eed2aae03aa6f1eaa4274d2a187d724125ab7b64b8dac6344b5235208ce5995e1703012d905d8384ec7634cb9d191ebd215266147437ab3962b263379bde
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.4.2
2
+
3
+ * Fix bug when the params is defined but is `nil`
4
+
1
5
  ## 0.4.1
2
6
 
3
7
  * Fix bug when the string is not a string, but a boolean
@@ -25,7 +25,7 @@ module ActionView::Helpers::TranslationHelper # rubocop:disable Lint/ConstantDef
25
25
  alias_method :t, :translate
26
26
 
27
27
  def moirai_edit_enabled?
28
- Moirai.enable_inline_editing.call(params: defined?(params) ? params : {})
28
+ Moirai.enable_inline_editing.call(params: defined?(params) ? (params || {}) : {})
29
29
  end
30
30
 
31
31
  private
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Moirai
4
- VERSION = "0.4.1"
4
+ VERSION = "0.4.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moirai
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alessandro Rodi