action_tabler 0.1 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -232,10 +232,11 @@ module ActionTabler
232
232
 
233
233
  # Determine if we have a relation
234
234
  if name.include?(".")
235
+ names = name.split(".")
235
236
  # Discover relation model name
236
- reflection = model.reflect_on_association(name.split(".")[0].to_sym)
237
+ reflection = model.reflect_on_association(names[0].to_sym)
237
238
  # Recurse with realtion model and name
238
- tabler_column_type_for(name.gsub("#{names[0]}.", ""), reflection.klass)
239
+ action_tabler_column_type_for(name.gsub("#{names[0]}.", ""), reflection.klass)
239
240
  else
240
241
  # Look up and return the Datatables column type
241
242
  ActionTabler::JqueryDatatables.column_type_for(model.columns_hash[name].class)
@@ -1,3 +1,3 @@
1
1
  module ActionTabler
2
- VERSION = "0.1"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: action_tabler
3
3
  version: !ruby/object:Gem::Version
4
- hash: 9
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- version: "0.1"
9
+ - 1
10
+ version: 0.1.1
10
11
  platform: ruby
11
12
  authors:
12
13
  - lhalff