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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5e02605b9ce59a91f21fd98ec10e68b80eea5b97
4
- data.tar.gz: f8b511dc7414dcdb216d5cbc195c84139442dfc1
3
+ metadata.gz: 6bd8291f543218777308ee8de4923ca7cc757ad5
4
+ data.tar.gz: 7ec66ac6f70de4149ed003451d4222b24f0c1d21
5
5
  SHA512:
6
- metadata.gz: 70a2465e53f664f0d9089466ca19520c92ced23c5ce41f1f9d009a99516c6f8241badcedebebebdbff02c0e977d3da55ac060f8a465ca3a25d6ae6d12378bd5f
7
- data.tar.gz: 879af11aefce817857795da183486577bd71084819d883c99b60d0b9791f7edf4d8d916cc07719318d7d98892baef562b209f9f39afe1eed52d3cb18bcfcdd33
6
+ metadata.gz: a1feb85764ce41f0f547e4f601135ac435bd620e929ccd272cb2d2d084c4e24b21a90e077ec9e37a02bc1a067a64250ea9b0931a4b9cc6e23ae653fdb30d5107
7
+ data.tar.gz: a4c60f0727b94c7a28ec779f4a17f67e896989c8b8aa4b9891a4803b38d3f76aef14216b514ca621b5a28bc6b7d2abc974b8c741f8af96f0b8eb0ec0444d1f1f
@@ -1,4 +1,4 @@
1
- require 'snaptable/helpers/table'
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
@@ -1,3 +1,3 @@
1
1
  module Snaptable
2
- VERSION = "0.9.1"
2
+ VERSION = "0.9.2"
3
3
  end
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.1
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/table.rb
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