serviceable 0.6.3 → 0.6.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/serviceable.rb +1 -1
  2. metadata +4 -4
@@ -284,7 +284,7 @@ module Serviceable
284
284
  end
285
285
 
286
286
  define_method("is_time_column?") do |column|
287
- object.to_s.capitalize.constantize.columns.select {|e| e.name==column.to_s}.first.type == :timestamp rescue false
287
+ [:timestamp,:datetime].include?(object.to_s.capitalize.constantize.columns.select {|e| e.name==column.to_s}.first.type.to_sym) rescue false
288
288
  end
289
289
 
290
290
  define_method("is_boolean_column?") do |column|
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: serviceable
3
3
  version: !ruby/object:Gem::Version
4
- hash: 1
4
+ hash: 15
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- - 3
10
- version: 0.6.3
9
+ - 4
10
+ version: 0.6.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Aubrey Goodman
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2013-11-17 00:00:00 Z
18
+ date: 2013-12-10 00:00:00 Z
19
19
  dependencies: []
20
20
 
21
21
  description: Decorate your controller classes with acts_as_service :model_name, and instantly support JSON/XML CRUD interface. Allow client to specify response contents using query string filter parameters.