rails-tables 0.6.1 → 0.6.2

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.
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.1
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,5 +1,6 @@
1
1
  require "rails-tables/engine"
2
2
  require "rails-tables/exceptions"
3
+ require "rails-tables/datatable"
3
4
  require "rails-tables/model_additions"
4
5
  require "rails-tables/relation_additions"
5
6
 
@@ -1,6 +1,9 @@
1
- class Datatable
2
- include Datatable::Sorting
3
- include Datatable::Searching
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
@@ -1,4 +1,4 @@
1
- class Column
1
+ class RailsTables::Column
2
2
 
3
3
  attr_accessor :table_name, :model, :name, :method, :column_source, :render_with, :blank_value, :virtual, :sortable, :searchable
4
4
 
@@ -1,4 +1,4 @@
1
- module Datatable::Searching
1
+ module RailsTables::Searching
2
2
  extend ActiveSupport::Concern
3
3
 
4
4
  included do
@@ -1,4 +1,4 @@
1
- module Datatable::Sorting
1
+ module RailsTables::Sorting
2
2
  extend ActiveSupport::Concern
3
3
 
4
4
  included do
@@ -1,3 +1,3 @@
1
1
  module RailsTables
2
- VERSION = "0.6.1"
2
+ VERSION = "0.6.2"
3
3
  end
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.1
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-05 00:00:00.000000000 Z
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