poodle-rb 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 870d2e4608cc379603d293610ac0ffabcb936f44
4
- data.tar.gz: 926764d17da68d811bd011622533379ffe2509e7
3
+ metadata.gz: ece2bcba5df12c9c7bd1e6964b6b8f26a495bd0c
4
+ data.tar.gz: 47b98fa145ec0ddf1cd944224ec41f938abdb54a
5
5
  SHA512:
6
- metadata.gz: e6963aa512c937bd9bb6d7b68c34102099b7a23f863c190ed57bba9835cee9696b10f014527f1cc716a5eeb41eb1e0de13776245f1e150201e14a150876f0d02
7
- data.tar.gz: 418c4d1f13b3ffdfe2e07dc2d966ef66ae7965f24e84ff85c8d6238f808fedf42bcab15e523c9dccfcecc16d9ee1cc544ca47a0e24ce9ab6cd16b2265ae761e6
6
+ metadata.gz: df8e5de2705c49dbfb76cf19d7a75682f32c1e8673b9a80e99c35879ca772b3bbbdf97dbaaa3f17ac31d7f87c4ddc36fe95d07dfcf733ffa63b2308fe034ee9f
7
+ data.tar.gz: c5e844dbb609caa40a97f2ba49eaec8749295b57c2c36af9b444c8bb048f701a55768b9150a44f0189c778518579e82cf0732b4da6422eea0725af13586f3ed2
@@ -129,7 +129,7 @@ module Poodle
129
129
  options[:html_options].merge!(style: "height: 80px;")
130
130
  text_area_tag(options[:param_name], object.send(field_name.to_s), **options[:html_options])
131
131
  when :file
132
- file_field_tag(options[:param_name], object.send(field_name.to_s), **options[:html_options])
132
+ file_field_tag(options[:param_name], **options[:html_options])
133
133
  when :checkbox
134
134
  options[:html_options][:class] = "checkbox mt-10"
135
135
  check_box_tag(options[:param_name], field_name, object.send(field_name.to_s), **options[:html_options])
@@ -237,7 +237,7 @@ module Poodle
237
237
  end
238
238
 
239
239
  theme_form_group(options[:label], required: options[:required], error_class: error_class) do
240
- form.select(options[:param_name], options_for_select(options_list, :selected => form.object.name), {:prompt=>options[:prompt]}, {:class => 'form-control'}) + error_message
240
+ form.select(options[:param_name], options_for_select(options_list, :selected => object.send(field_name)), {:prompt=>options[:prompt]}, {:class => 'form-control'}) + error_message
241
241
  end
242
242
  end
243
243
 
@@ -1,3 +1,3 @@
1
1
  module Poodle
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: poodle-rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Krishnaprasad Varma
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-14 00:00:00.000000000 Z
11
+ date: 2015-02-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: kaminari