datatablesnet 1.1.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -4,4 +4,5 @@ log/*.log
4
4
  tmp/
5
5
  .DS_Store
6
6
  *.log
7
+ *.gem
7
8
  nbproject
File without changes
@@ -111,7 +111,8 @@ module Datatable
111
111
 
112
112
  config = {:options => options, :columns =>columns, :table_options => table_options}
113
113
  config.to_json
114
- render :file => template_path + "/_table", :locals => { :table_id => id, :columns => columns, :rows => rows, :config => config}
114
+
115
+ render :partial => "datatablesnet/table", :locals => { :table_id => id, :columns => columns, :rows => rows, :config => config}
115
116
  end
116
117
 
117
118
  def datatable_get_column_defs options, columns
@@ -1,3 +1,3 @@
1
1
  module Datatablesnet
2
- VERSION = "1.1.1"
2
+ VERSION = "1.1.2"
3
3
  end
@@ -0,0 +1,16 @@
1
+ # encoding: utf-8
2
+
3
+ module Datatablesnet
4
+ module Generators
5
+ class ViewsGenerator < Rails::Generators::Base
6
+ source_root File.expand_path('../../../../app/views/datatablesnet', __FILE__)
7
+
8
+ desc "Copies views to application"
9
+ class_option :orm
10
+
11
+ def copy_table_partial
12
+ copy_file "_table.html.haml", "app/views/datatablesnet/_table.html.haml"
13
+ end
14
+ end
15
+ end
16
+ end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 1
8
- - 1
9
- version: 1.1.1
8
+ - 2
9
+ version: 1.1.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Matt Fields
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-08-24 00:00:00 +03:00
17
+ date: 2011-08-25 00:00:00 +03:00
18
18
  default_executable:
19
19
  dependencies: []
20
20
 
@@ -29,14 +29,15 @@ extra_rdoc_files: []
29
29
  files:
30
30
  - .gitignore
31
31
  - Gemfile
32
+ - app/views/datatablesnet/_table.html.haml
32
33
  - datatablesnet.gemspec
33
34
  - lib/datatablesnet.rb
34
- - lib/datatablesnet/_table.html.haml
35
35
  - lib/datatablesnet/datatable.rb
36
36
  - lib/datatablesnet/hash_sql.rb
37
37
  - lib/datatablesnet/railtie.rb
38
38
  - lib/datatablesnet/types.rb
39
39
  - lib/datatablesnet/version.rb
40
+ - lib/generators/datatablesnet/views_generator.rb
40
41
  has_rdoc: true
41
42
  homepage: https://github.com/IslandPort/datatablesnet
42
43
  licenses: []