netshade-sql_valued_columns 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.3
1
+ 0.0.4
@@ -33,7 +33,8 @@ module SqlValuedColumns
33
33
  end
34
34
 
35
35
  def sql_columns
36
- @sql_columns ||= { }
36
+ base_columns = (superclass.respond_to?(:sql_columns)) ? superclass.sql_columns : { }
37
+ base_columns.merge(@sql_columns ||= { })
37
38
  end
38
39
 
39
40
  end
@@ -41,7 +42,7 @@ module SqlValuedColumns
41
42
  module InstanceMethods
42
43
 
43
44
  def attributes_with_quotes_with_sqlcolumns(include_primary_key = true, include_readonly_attributes = true, attribute_names = @attributes.keys)
44
- h = self.attributes_with_quotes_without_sqlcolumns(include_primary_key, include_readonly_attributes, attribute_names)
45
+ h = self.send(:attributes_with_quotes_without_sqlcolumns, include_primary_key, include_readonly_attributes, attribute_names)
45
46
  names = h.keys
46
47
  names.each do |name|
47
48
  if self.class.sql_columns[name]
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{sql_valued_columns}
5
- s.version = "0.0.3"
5
+ s.version = "0.0.4"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["netshade"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: netshade-sql_valued_columns
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - netshade