rails-tables 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -1
- data/lib/rails-tables.rb +1 -0
- data/{app/tables → lib/rails-tables}/datatable.rb +7 -4
- data/{app/tables → lib/rails-tables/datatable}/column.rb +1 -1
- data/{app/tables → lib/rails-tables}/datatable/searching.rb +1 -1
- data/{app/tables → lib/rails-tables}/datatable/sorting.rb +1 -1
- data/lib/rails-tables/version.rb +1 -1
- metadata +6 -6
data/README.md
CHANGED
@@ -12,7 +12,7 @@ A clean jQuery datatables DSL
|
|
12
12
|
[jqd-railscast]: http://railscasts.com/episodes/340-datatables (Episode #340: Datatables)
|
13
13
|
[squeel]: https://github.com/ernie/squeel (Squeel: ActiveRecord 3, improved)
|
14
14
|
|
15
|
-
Version: 0.6.
|
15
|
+
Version: 0.6.2
|
16
16
|
|
17
17
|
Please refer to the [RailsTables Wiki][wiki] for:
|
18
18
|
|
data/lib/rails-tables.rb
CHANGED
@@ -1,6 +1,9 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
require "rails-tables/datatable/column"
|
2
|
+
require "rails-tables/datatable/sorting"
|
3
|
+
require "rails-tables/datatable/searching"
|
4
|
+
class RailsTables::Datatable
|
5
|
+
include RailsTables::Sorting
|
6
|
+
include RailsTables::Searching
|
4
7
|
delegate :params, to: 'self.view'
|
5
8
|
|
6
9
|
attr_accessor :name, :root, :model, :view
|
@@ -65,7 +68,7 @@ class Datatable
|
|
65
68
|
end
|
66
69
|
# Lazily instanciates and caches columns
|
67
70
|
def columns
|
68
|
-
@columns ||= self.column_factory.map{ |new_column| Column.new(self.class.name, self.model, new_column[:name], new_column[:args]) }
|
71
|
+
@columns ||= self.column_factory.map{ |new_column| RailsTables::Column.new(self.class.name, self.model, new_column[:name], new_column[:args]) }
|
69
72
|
end
|
70
73
|
|
71
74
|
class_attribute :joins
|
data/lib/rails-tables/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails-tables
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-12-
|
12
|
+
date: 2012-12-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -116,11 +116,11 @@ extensions: []
|
|
116
116
|
extra_rdoc_files: []
|
117
117
|
files:
|
118
118
|
- app/assets/javascripts/rails-tables.js.coffee
|
119
|
-
- app/tables/column.rb
|
120
|
-
- app/tables/datatable/searching.rb
|
121
|
-
- app/tables/datatable/sorting.rb
|
122
|
-
- app/tables/datatable.rb
|
123
119
|
- config/routes.rb
|
120
|
+
- lib/rails-tables/datatable/column.rb
|
121
|
+
- lib/rails-tables/datatable/searching.rb
|
122
|
+
- lib/rails-tables/datatable/sorting.rb
|
123
|
+
- lib/rails-tables/datatable.rb
|
124
124
|
- lib/rails-tables/engine.rb
|
125
125
|
- lib/rails-tables/exceptions.rb
|
126
126
|
- lib/rails-tables/model_additions.rb
|