cowtech-rails 1.9.6.1 → 1.9.7.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -17,22 +17,6 @@ module Cowtech
17
17
  extend ActiveSupport::Concern
18
18
 
19
19
  module ClassMethods
20
- if defined?(Rails) then
21
- def table_prefix
22
- p = ActiveRecord::Base.configurations[Rails.env]["table_prefix"]
23
- !p.blank? ? p + "_" : ""
24
- end
25
-
26
- def table_suffix
27
- p = ActiveRecord::Base.configurations[Rails.env]["table_suffix"]
28
- !p.blank? ? p + "_" : ""
29
- end
30
- end
31
-
32
- def set_table_name(value = nil, &block)
33
- define_attr_method :table_name, "#{ActiveRecord::Base.table_prefix}#{value}#{ActiveRecord::Base.table_suffix}", &block
34
- end
35
-
36
20
  def find_or_create(oid, attributes = nil)
37
21
  begin
38
22
  self.find(oid)
@@ -9,8 +9,8 @@ module Cowtech
9
9
  module Version
10
10
  MAJOR = 1
11
11
  MINOR = 9
12
- PATCH = 6
13
- BUILD = 1
12
+ PATCH = 7
13
+ BUILD = 0
14
14
 
15
15
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
16
16
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cowtech-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.6.1
4
+ version: 1.9.7.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-08-02 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: cowtech-extensions
16
- requirement: &70139170394220 !ruby/object:Gem::Requirement
16
+ requirement: &70282178784700 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70139170394220
24
+ version_requirements: *70282178784700
25
25
  description: A general purpose Rails utility plugin.
26
26
  email: shogun_panda@me.com
27
27
  executables: []