x-editable-rails 1.5.4 → 1.5.5

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: 147a7545378c08302b0aa3078eefb5b34f8cfb36
4
- data.tar.gz: f93643c63b673cb323982194ca905a0eec38a90c
3
+ metadata.gz: c489cb060a3a51dabf4062a91ce61ad348d0e1d4
4
+ data.tar.gz: 58ebbc7b384c1691d0f868f93216609de5673963
5
5
  SHA512:
6
- metadata.gz: 09d634d226d06a25c1ba9a13977da472744b42674969f0172fc2a14e38b20182551c15737fc996b32c92c65d0a5e3f7ddcfd04da311e31ec0243590f15bb3c9e
7
- data.tar.gz: 0b3a64951964c9f5451ac7f5deb3954a4852657151f541eca258f9cde0b1a924295bd767d3da2e771ffd717248f4531bd0d3c6a17ccf58c85775df0376fa4a9e
6
+ metadata.gz: 7f630f0adc0740b0407c05f9086476034a072b6c6e547db23998245aaf2d2f59a4aee870c893ca101790417c47942105d9c3a390d3ad744fcbb74f5c0d4b91b3
7
+ data.tar.gz: e06c81114244fd61c601ec095278eaa049b46bc6b4c3d074d7f540d7ebabe93c6c11b40f5b1a3e20098f2840b2ea6fc20845937bf10d824e6e05cb1009d2261a
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # X::Editable::Rails
2
2
 
3
+ [![Build Status](https://travis-ci.org/werein/x-editable-rails.svg)](https://travis-ci.org/werein/x-editable-rails) [![Code Climate](https://codeclimate.com/github/werein/x-editable-rails/badges/gpa.svg)](https://codeclimate.com/github/werein/x-editable-rails) [![Test coverage](https://codeclimate.com/github/werein/x-editable-rails/badges/coverage.svg)](https://codeclimate.com/github/werein/x-editable-rails) [![Version](https://badge.fury.io/rb/x-editable-rails.svg)](https://badge.fury.io/rb/x-editable-rails) [![Dependencies](https://gemnasium.com/werein/x-editable-rails.svg)](https://gemnasium.com/werein/x-editable-rails)
4
+
3
5
  X-editable for Rails
4
6
 
5
7
  ## Installation
@@ -1,7 +1,7 @@
1
1
  module X
2
2
  module Editable
3
3
  module Rails
4
- VERSION = "1.5.4"
4
+ VERSION = "1.5.5"
5
5
  end
6
6
  end
7
7
  end
@@ -33,7 +33,7 @@ module X
33
33
  html_options = options.delete(:html){ Hash.new }
34
34
 
35
35
  if xeditable?(object)
36
- model = object.model_name.to_s.underscore
36
+ model = object.class.model_name.element
37
37
  nid = options.delete(:nid)
38
38
  nested = options.delete(:nested)
39
39
  title = options.delete(:title) do
@@ -61,7 +61,7 @@ module X
61
61
  url: url,
62
62
  nested: nested,
63
63
  nid: nid
64
- }.merge(options)
64
+ }.merge(options.symbolize_keys)
65
65
 
66
66
  data.reject!{|_, value| value.nil?}
67
67
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: x-editable-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.4
4
+ version: 1.5.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jiri Kolarik
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-02 00:00:00.000000000 Z
11
+ date: 2015-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties