snaptable 0.9.1 → 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/snaptable/engine.rb +2 -2
- data/lib/snaptable/helpers/table_helper.rb +20 -0
- data/lib/snaptable/version.rb +1 -1
- metadata +2 -2
- data/lib/snaptable/helpers/table.rb +0 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6bd8291f543218777308ee8de4923ca7cc757ad5
|
4
|
+
data.tar.gz: 7ec66ac6f70de4149ed003451d4222b24f0c1d21
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a1feb85764ce41f0f547e4f601135ac435bd620e929ccd272cb2d2d084c4e24b21a90e077ec9e37a02bc1a067a64250ea9b0931a4b9cc6e23ae653fdb30d5107
|
7
|
+
data.tar.gz: a4c60f0727b94c7a28ec779f4a17f67e896989c8b8aa4b9891a4803b38d3f76aef14216b514ca621b5a28bc6b7d2abc974b8c741f8af96f0b8eb0ec0444d1f1f
|
data/lib/snaptable/engine.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
require 'snaptable/helpers/
|
1
|
+
require 'snaptable/helpers/table_helper'
|
2
2
|
require 'snaptable/helpers/buttons_helper'
|
3
3
|
|
4
4
|
module Snaptable
|
@@ -7,7 +7,7 @@ module Snaptable
|
|
7
7
|
require 'jquery-rails'
|
8
8
|
|
9
9
|
initializer 'Snaptable.tables' do
|
10
|
-
ActionController::Base.send :include, Helpers
|
10
|
+
ActionController::Base.send :include, Helpers::TableHelper
|
11
11
|
end
|
12
12
|
|
13
13
|
initializer 'Snaptable.buttons_helper' do
|
@@ -0,0 +1,20 @@
|
|
1
|
+
require 'snaptable/constructor/base_table'
|
2
|
+
|
3
|
+
module Snaptable
|
4
|
+
module Helpers
|
5
|
+
module TableHelper
|
6
|
+
class Table < Snaptable::Constructor::BaseTable
|
7
|
+
|
8
|
+
def initialize(parent, model, collection = nil, options = {})
|
9
|
+
super(parent, collection, options)
|
10
|
+
@model = model
|
11
|
+
end
|
12
|
+
|
13
|
+
def model
|
14
|
+
@model
|
15
|
+
end
|
16
|
+
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
data/lib/snaptable/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: snaptable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- khcr
|
@@ -107,7 +107,7 @@ files:
|
|
107
107
|
- lib/snaptable/constructor/sortable.rb
|
108
108
|
- lib/snaptable/engine.rb
|
109
109
|
- lib/snaptable/helpers/buttons_helper.rb
|
110
|
-
- lib/snaptable/helpers/
|
110
|
+
- lib/snaptable/helpers/table_helper.rb
|
111
111
|
- lib/snaptable/version.rb
|
112
112
|
- test/dummy/Rakefile
|
113
113
|
- test/dummy/app/assets/javascripts/application.js
|
@@ -1,19 +0,0 @@
|
|
1
|
-
require 'snaptable/constructor/base_table'
|
2
|
-
|
3
|
-
module Snaptable
|
4
|
-
module Helpers
|
5
|
-
|
6
|
-
class Table < Snaptable::Constructor::BaseTable
|
7
|
-
|
8
|
-
def initialize(parent, model, collection = nil, options = {})
|
9
|
-
super(parent, collection, options)
|
10
|
-
@model = model
|
11
|
-
end
|
12
|
-
|
13
|
-
def model
|
14
|
-
@model
|
15
|
-
end
|
16
|
-
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|