effective_datatables 3.4.0 → 3.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -19
- data/lib/effective_datatables/engine.rb +0 -3
- data/lib/effective_datatables/version.rb +1 -1
- 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: f242f95da0c3da3bedc59eb1ddc845041d578c65
|
4
|
+
data.tar.gz: 7ec0fcbf0907f03c917270e8f2230a7882fb52c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: edf0c4b29cbd491fab3cbbb2dca0911dfe091f27c3dd06659418cab0d32eb63a6c21a0451dad4c8f52ebf2031f94e3463cc1c1e430a2469e8592616fde1a28c1
|
7
|
+
data.tar.gz: 98ddf66e1433b990cb0ec0a11cf6d0a0f8746eaf6f9ada95a568a8fd99f5f5bc7919cbbfe9f60156c1000cb5802b2171f41fc87e6aea3da826532d6651fe63ea
|
data/README.md
CHANGED
@@ -16,33 +16,19 @@ For use with any Rails 3, 4, 5 application already using Twitter Bootstrap 3.
|
|
16
16
|
|
17
17
|
Works with postgres, mysql, sqlite3 and arrays.
|
18
18
|
|
19
|
-
##
|
19
|
+
## Bootstrap3
|
20
20
|
|
21
|
-
This is the
|
21
|
+
This is the `bootstrap3` branch of effective_datatables which supports Twitter Bootstrap 3.
|
22
22
|
|
23
|
-
|
23
|
+
All published effective_datatables 3.x gems will support Twitter Bootstrap 3 and SimpleForm.
|
24
24
|
|
25
|
-
|
26
|
-
|
27
|
-
Internally, all columns now have separate compute and format methods, removing the need for a ton of internal parsing and type conversions.
|
28
|
-
This allows things like filters, aggregates and searching/sorting to work effectively.
|
29
|
-
|
30
|
-
Column rendering has been improved so all datatable and view methods are callable from anywhere in the DSL.
|
31
|
-
This allows the developer to do things like: include/exclude/configure columns based on the current_user, apply logic around current filters
|
32
|
-
to change columns dynamically, to use regular ifs instead of procs in toggling visibility, and generally removes all weirdness.
|
33
|
-
|
34
|
-
This release adds a dependency on [effective_resources](https://github.com/code-and-effect/effective_resources) for ActiveRecord resource discovery,
|
35
|
-
full sql table fuzzy searching/sorting, attribute parsing, and checking availability & authorization of edit/show actions.
|
36
|
-
|
37
|
-
A cookie has been added to persist the user's selected filters, search, sort, length, column visibility and pagination settings.
|
38
|
-
|
39
|
-
A lot has changed. See below for full details.
|
25
|
+
For Bootstrap 4 please see the master branch and/or effective_datatables 4.x gems.
|
40
26
|
|
41
27
|
# Getting Started
|
42
28
|
|
43
29
|
```ruby
|
44
30
|
gem 'haml-rails' # or try using gem 'hamlit-rails'
|
45
|
-
gem 'effective_datatables'
|
31
|
+
gem 'effective_datatables', github: 'code-and-effect/effective_datatables', branch: 'bootstrap3'
|
46
32
|
```
|
47
33
|
|
48
34
|
Run the bundle command to install it:
|
@@ -7,9 +7,6 @@ module EffectiveDatatables
|
|
7
7
|
# Include Helpers to base application
|
8
8
|
initializer 'effective_datatables.action_controller' do |app|
|
9
9
|
ActiveSupport.on_load :action_controller do
|
10
|
-
helper EffectiveDatatablesHelper
|
11
|
-
helper EffectiveDatatablesPrivateHelper
|
12
|
-
|
13
10
|
ActionController::Base.send :include, ::EffectiveDatatablesControllerHelper
|
14
11
|
end
|
15
12
|
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: 3.4.
|
4
|
+
version: 3.4.1
|
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: 2018-
|
11
|
+
date: 2018-03-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|