promethee 1.4.25 → 1.4.26

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: 2a2e08a77960c37fe075f7cd064a3c70c4afd51f
4
- data.tar.gz: c7fb6740554d0f10edcf1ac6713b86412b4095c8
3
+ metadata.gz: ec539ba2454570b0991fee49fad2b36af344adea
4
+ data.tar.gz: 3ad0e247dcfd43ed11cf6ab834edad5242818508
5
5
  SHA512:
6
- metadata.gz: a525c4dab046de46ad5f2034ef85b9d94f08695a6e81cb3b90602a10ac73a7502af8d5a3f93ecddf96d0992f9ab41a450caee97a56f5dc71b5634ad59f69e592
7
- data.tar.gz: 9e61ebceaa696124f4f9109a3170ea31b8851702d5c91cc1dde3dd6c77b9516e64299771783a89634fcfee5cfb01b9cd46329695db56e66a8e3615d990c2328c
6
+ metadata.gz: 89289bb4adac948175162fb2a9315ddeaecc8d18fa99b6c69c26a29f8887c79155c2e8464a3c6580e115cc053fb9ef125af7f54333342a1b2c7709fb780adb8f
7
+ data.tar.gz: c277a0414929fd9a99ea5f1307ddc62039fe735a143ef3d7062066f056188cefa56656661f85a001052b3af08770a2e79d57b1cb4f31087f4fa57025ac5d8cc0
@@ -6,7 +6,8 @@ module ActionView
6
6
  # https://github.com/rails/rails/blob/bdc581616b760d1e2be3795c6f0f3ab4b1e125a5/actionview/lib/action_view/helpers/tags/text_field.rb
7
7
  class PrometheeEditor < Base
8
8
  def render
9
- @options[:master_data] = object.send @method_name unless object.nil? || @options.key?(:value)
9
+ @options[:master_data] = object.send @method_name unless object.nil?
10
+ @options[:master_data] = @options[:value] if @options.key?(:value)
10
11
  ApplicationController.renderer.render partial: 'promethee/edit', locals: @options
11
12
  end
12
13
  end
@@ -1,5 +1,5 @@
1
1
  module Promethee
2
2
  module Rails
3
- VERSION = '1.4.25'
3
+ VERSION = '1.4.26'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: promethee
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.25
4
+ version: 1.4.26
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julien Dargelos