cutlass_js_rails 0.3.0 → 0.3.1

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
  SHA1:
3
- metadata.gz: 653c48d04d8b48db5ea3de07235781216cad3d6e
4
- data.tar.gz: 427d727b0efa5f2197ae1aea1c9732ea830b40da
3
+ metadata.gz: a37ea0e58c065d009dfad502c841dbbb9477e117
4
+ data.tar.gz: b2605b1cd103e3fb6ee865b4071e9eac73c0740e
5
5
  SHA512:
6
- metadata.gz: 59cbb937dec6ae155274f4251151b63ed89fc79c71eb7a7b5b98ed5ea2dcce25afc866891acbd792ffa9ddee857fe6409b829178cb804c4db471212a3276fbcb
7
- data.tar.gz: 33d1ecd3cd9af8355fe344363b7987f32d72accda6e9a053ec7aeb3653ce2c99de434f35f81d5f1d019171d49558e8e6e044f89dbe75187eda579c46092f84b8
6
+ metadata.gz: 11533895e7cdf270927ae93d5f188309de83c357b21d765583264dd0a275bab040cdb3ead65ab9aef5f7d1d21dcda21dd4e0120394481e7696d54538627acbbe
7
+ data.tar.gz: 0f9a04d1832b9b28d37ba55f050b488e6cb5a05227b092b57dc36079976cc751918486a9b742980c55471366bd1bd6e95455cbcf461ab41e44adb683f9eb8c9a
@@ -1,4 +1,4 @@
1
1
  <% css_classes = (defined? css_classes) ? css_classes : '' %>
2
2
  <% props = local_assigns.fetch(:props, {}) %>
3
- <% value = local_assigns.fetch(:value, model.send(code)) %>
3
+ <% value = local_assigns.fetch(:value, '') %>
4
4
  <%= f.text_field code, class: "Cutlass-input-text #{css_classes}", 'data-label': label, value: value, type: 'tel', 'data-always-active': true, 'data-error': model.errors[code][0], **props %>
@@ -1,5 +1,5 @@
1
1
  <% css_classes = (defined? css_classes) ? css_classes : '' %>
2
2
  <% code = local_assigns.fetch(:code) %>
3
3
  <% props = local_assigns.fetch(:props, {}) %>
4
- <% value = local_assigns.fetch(:value, model.send(code)) %>
4
+ <% value = local_assigns.fetch(:value, '') %>
5
5
  <%= f.select code, options_for_select(options, selected: value), props.merge(selected: value), { class: "Cutlass-input-select #{css_classes}", 'data-label': label, 'data-error': model.errors[code][0] } %>
@@ -1,5 +1,5 @@
1
1
  <% css_classes = (defined? css_classes) ? css_classes : '' %>
2
2
  <% props = (defined? props) ? props.to_h : {} %>
3
3
  <% code = local_assigns.fetch(:code) %>
4
- <% value = local_assigns.fetch(:value, model.send(code)) %>
4
+ <% value = local_assigns.fetch(:value, '') %>
5
5
  <%= f.text_field code, class: "Cutlass-input-text #{css_classes}", value: value, **({ 'data-label' => label, 'data-error' => model.errors[code][0] }.merge(props).symbolize_keys) %>
@@ -1,7 +1,7 @@
1
1
  <% css_classes = (defined? css_classes) ? css_classes : '' %>
2
2
  <% code = local_assigns.fetch(:code) %>
3
3
  <% label = local_assigns.fetch(:label) %>
4
- <% value = local_assigns.fetch(:value, model.send(code)) %>
4
+ <% value = local_assigns.fetch(:value, '') %>
5
5
  <%= f.check_box code, {
6
6
  class: "Cutlass-input-toggler js-conditional-switch #{css_classes}",
7
7
  checked: value == 'true',
@@ -1,3 +1,3 @@
1
1
  module CutlassJsRails
2
- VERSION = '0.3.0'
2
+ VERSION = '0.3.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cutlass_js_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - chardos