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 +4 -4
- data/README.md +2 -0
- data/lib/x-editable-rails/version.rb +1 -1
- data/lib/x-editable-rails/view_helpers.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c489cb060a3a51dabf4062a91ce61ad348d0e1d4
|
4
|
+
data.tar.gz: 58ebbc7b384c1691d0f868f93216609de5673963
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
@@ -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.
|
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
|
+
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-
|
11
|
+
date: 2015-09-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|