simple_record 1.1.53 → 1.1.54

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/lib/simple_record.rb CHANGED
@@ -534,11 +534,11 @@ module SimpleRecord
534
534
  # check if it ends with id and see if att_meta is there
535
535
  ends_with = name.to_s[-3, 3]
536
536
  if ends_with == "_id"
537
- puts 'ends with id'
537
+ # puts 'ends with id'
538
538
  n2 = name.to_s[0, name.length-3]
539
- puts 'n2=' + n2
539
+ # puts 'n2=' + n2
540
540
  att_meta = defined_attributes_local[n2.to_sym]
541
- puts 'defined_attributes_local=' + defined_attributes_local.inspect
541
+ # puts 'defined_attributes_local=' + defined_attributes_local.inspect
542
542
  attname = name.to_s
543
543
  attvalue = value
544
544
  name = n2
@@ -132,7 +132,7 @@ module SimpleRecord
132
132
 
133
133
  # Define reader method
134
134
  send(:define_method, arg) do
135
- puts 'GETTING ' + arg.to_s
135
+ # puts 'GETTING ' + arg.to_s
136
136
  attribute = defined_attributes_local[arg]
137
137
  options2 = attribute.options # @@belongs_to_map[arg]
138
138
  class_name = options2[:class_name] || arg.to_s[0...1].capitalize + arg.to_s[1...arg.to_s.length]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_record
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.53
4
+ version: 1.1.54
5
5
  platform: ruby
6
6
  authors:
7
7
  - Travis Reeder