effective_datatables 1.6.3 → 1.7.0

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: e1db6bf2a4ba2d3d3df1026b1056c2166716f23c
4
- data.tar.gz: 1d4e5805b1838a304b872beab0851a74b45ffced
3
+ metadata.gz: 2886ccb27eabcc82b302f81df10e2e4cc8df6382
4
+ data.tar.gz: d7dafdae76d0e065bf81dec0466abf23c3a1df13
5
5
  SHA512:
6
- metadata.gz: 8e2cfe3cfcf3a00e8cfda701e57211bbdcf90ffa20a99eb599c8b7b7407bcf293eda5ada701945e27127d631c40f3c1e0db8f4b956e46840ec66d2e07ed35f1f
7
- data.tar.gz: e2f0247480ad1cfdedab156355d8768178941fe204fb632a916bf8fed3fc3cea1e6d98448dfa0ca24a4201b8bd409fb1d1a086a7ad010eb6373260038707ed43
6
+ metadata.gz: 785d2e6b32533c2f2157858acefef240165e7619837e68b50cbc7b31a21f92a9fa992201a01e3aa957c0d4f4babd795e2e0a7a0c676ad4505de86c7986df7f3f
7
+ data.tar.gz: 51e9a8df9494af9138a7c6fb3a2dd158c8ce9e659cbb347ebf9944ce8096267e163bf4853bf26af8a4a9bdae6e5ff41823971b5271faa31a09851b4ae1adbe7a
@@ -4,7 +4,7 @@ initializeDataTables = ->
4
4
  datatable = $(this)
5
5
 
6
6
  init_options =
7
- ajax: { url: datatable.data('source'), type: 'GET' }
7
+ ajax: { url: datatable.data('source'), type: 'POST' }
8
8
  autoWidth: false
9
9
  processing: true
10
10
  deferRender: true
@@ -2,6 +2,7 @@ module Effective
2
2
  class DatatablesController < ApplicationController
3
3
  skip_log_page_views if defined?(EffectiveLogging)
4
4
 
5
+ # This will respond to both a GET and a POST
5
6
  def show
6
7
  @datatable = Effective::Datatable.find(params[:id], params[:attributes])
7
8
  @datatable.view = view_context if !@datatable.nil?
@@ -4,8 +4,6 @@ end
4
4
 
5
5
  EffectiveDatatables::Engine.routes.draw do
6
6
  scope :module => 'effective' do
7
- resources :datatables, :only => [:show]
7
+ match 'datatables/:id(.:format)', to: 'datatables#show', via: [:get, :post], as: :datatable
8
8
  end
9
9
  end
10
-
11
-
@@ -1,3 +1,3 @@
1
1
  module EffectiveDatatables
2
- VERSION = '1.6.3'.freeze
2
+ VERSION = '1.7.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_datatables
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.3
4
+ version: 1.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-10 00:00:00.000000000 Z
11
+ date: 2015-06-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails