smarter_listing 0.2.6 → 0.2.7

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: c3f465babbf9c3d8fa8d66e8d5dea7772df3dc71
4
- data.tar.gz: 9d1dcd1904e7b097d423a1c8ad8d542f99886f36
3
+ metadata.gz: 06134f57753d729ac8c612feb6f64b0b46d7a279
4
+ data.tar.gz: d4fc6111871b0c0078013f836a29ccb9fad09288
5
5
  SHA512:
6
- metadata.gz: b551698692fe8a6a61a02d273cc000845ec9a84a617bcdea038156018fffb3ef5bc0c23b78fd636621f45d42e66b4b6bf66444695285d0c9f65c5c7544e0f035
7
- data.tar.gz: 3f94b35acb8c752ff57de5835a1a838a0bfe990dcc535f953e4c84526c4e5b4080fc19657c7fbfd45349a09199c0f3d6843bd2492b4ab060c8e0cae7445cabe4
6
+ metadata.gz: bb22f01aa505fc6cc79dfc2110c1f535ba70997d7a517cf967374697fb46dfedf74503766b267693a6239ab7b96b7d185174f6c11f3e2d547b655d37047a7f86
7
+ data.tar.gz: bd931aa955afb0e6ebd64b73ef511253bcc8092b60d6a7f44c236e0f42cc6aa7d458b3165adb12bee8dc0cb29a2fd2d5f5cc7eb555d903b503d622815deb7e08
@@ -0,0 +1,5 @@
1
+ <%= smart_listing_render(model.name.tableize) %>
2
+ <script type="text/javascript">
3
+ var smart_listing = $('#<%= collection_sym %>').smart_listing();
4
+ smart_listing.edit(<%= resource.id %>, "<%= escape_javascript(render(partial: "#{resource_view_path}/form.html", locals: {object: resource})) %>");
5
+ </script>
@@ -34,7 +34,10 @@ module SmarterListing::ControllerExtension
34
34
  end
35
35
 
36
36
  def edit
37
- resource
37
+ respond_to do |format|
38
+ format.html { load_collection; resource }
39
+ format.js { resource }
40
+ end
38
41
  render 'smarter_listing/edit'
39
42
  end
40
43
 
@@ -1,3 +1,3 @@
1
1
  module SmarterListing
2
- VERSION = '0.2.6'
2
+ VERSION = '0.2.7'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smarter_listing
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Sprauer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-04 00:00:00.000000000 Z
11
+ date: 2015-03-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -68,6 +68,7 @@ files:
68
68
  - app/views/smarter_listing/copy.js.erb
69
69
  - app/views/smarter_listing/create.js.erb
70
70
  - app/views/smarter_listing/destroy.js.erb
71
+ - app/views/smarter_listing/edit.html.erb
71
72
  - app/views/smarter_listing/edit.js.erb
72
73
  - app/views/smarter_listing/index.js.erb
73
74
  - app/views/smarter_listing/new.js.erb