1
0
Fork 0
mirror of https://github.com/awesome-print/awesome_print synced 2023-03-27 23:22:34 -04:00

Merge pull request #236 from gerrywastaken/add-rails-5-testing

Add rails 5 testing
This commit is contained in:
Gerry 2016-07-02 02:13:45 +10:00 committed by GitHub
commit 49fc390079
20 changed files with 1805 additions and 1445 deletions

View file

@ -3,7 +3,8 @@ rvm:
- 1.9.3
- 2.0.0
- 2.1
- 2.2
- 2.2.5
- 2.3.1
before_install:
- gem install bundler
@ -13,9 +14,20 @@ gemfile:
- gemfiles/rails_4.0.gemfile
- gemfiles/rails_4.1.gemfile
- gemfiles/rails_4.2.gemfile
- gemfiles/rails_5.0.gemfile
- gemfiles/mongoid_3.1.gemfile
- gemfiles/nobrainer.gemfile
matrix:
exclude:
# Rails 5.0 only works with Ruby >= 2.2
- rvm: 1.9.3
gemfile: gemfiles/rails_5.0.gemfile
- rvm: 2.0.0
gemfile: gemfiles/rails_5.0.gemfile
- rvm: 2.1
gemfile: gemfiles/rails_5.0.gemfile
addons:
code_climate:
repo_token: b84a33c35c698270ad54261655bc25161a0853386825a2d54fb1c7a11c2b2785

View file

@ -26,6 +26,11 @@ appraise 'rails-4.2' do
gem 'mime-types', '2.6.2', :platforms => :ruby_19
end
appraise 'rails-5.0' do
# Only works with Ruby >= 2.2
gem 'rails', '>= 5.0.0.racecar1', '< 5.1'
end
appraise 'mongoid-3.0' do
gem 'mongoid', '~> 3.0.0'
end

View file

@ -0,0 +1,7 @@
# This file was generated by Appraisal
source "https://rubygems.org"
gem "rails", ">= 5.0.0.racecar1", "< 5.1"
gemspec :path => "../"

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,20 @@
require 'pathname'
class ActiveRecordData
class << self
data_file_selector = Pathname(File.dirname(__FILE__)).join('active_record_data', '*.txt')
# Example generated method
# data_filename = '/path/to/ap/spec/support/active_record_data/4_2_diana.txt'
#
# def self.raw_4_2_dana
# File.read(data_filename).strip
# end
Dir[data_file_selector].each do |data_filename|
method_name = Pathname(data_filename).basename('.txt')
define_method(:"raw_#{method_name}") do
File.read(data_filename).strip
end
end
end
end

View file

@ -0,0 +1,24 @@
#<User:placeholder_id
@aggregation_cache = {},
@attributes_cache = {},
@destroyed = false,
@marked_for_destruction = false,
@mass_assignment_options = nil,
@new_record = true,
@previously_changed = {},
@readonly = false,
attr_accessor :attributes = {
"admin" => false,
"created_at" => "1992-10-10 12:30:00",
"id" => nil,
"name" => "Diana",
"rank" => 1
},
attr_reader :association_cache = {},
attr_reader :changed_attributes = {
"admin" => nil,
"created_at" => nil,
"name" => nil,
"rank" => nil
}
>

View file

@ -0,0 +1,24 @@
#<User:placeholder_id
@aggregation_cache = {},
@attributes_cache = {},
@destroyed = false,
@marked_for_destruction = false,
@new_record = true,
@previously_changed = {},
@readonly = false,
attr_accessor :attributes = {
"admin" => false,
"created_at" => "1992-10-10 12:30:00",
"id" => nil,
"name" => "Diana",
"rank" => 1
},
attr_reader :association_cache = {},
attr_reader :changed_attributes = {
"admin" => nil,
"created_at" => nil,
"name" => nil,
"rank" => nil
},
attr_reader :mass_assignment_options = nil
>

View file

@ -0,0 +1,50 @@
[
[0] #<User:placeholder_id
@aggregation_cache = {},
@attributes_cache = {},
@destroyed = false,
@marked_for_destruction = false,
@mass_assignment_options = nil,
@new_record = true,
@previously_changed = {},
@readonly = false,
attr_accessor :attributes = {
"admin" => false,
"created_at" => "1992-10-10 12:30:00",
"id" => nil,
"name" => "Diana",
"rank" => 1
},
attr_reader :association_cache = {},
attr_reader :changed_attributes = {
"admin" => nil,
"created_at" => nil,
"name" => nil,
"rank" => nil
}
>,
[1] #<User:placeholder_id
@aggregation_cache = {},
@attributes_cache = {},
@destroyed = false,
@marked_for_destruction = false,
@mass_assignment_options = nil,
@new_record = true,
@previously_changed = {},
@readonly = false,
attr_accessor :attributes = {
"admin" => true,
"created_at" => "2003-05-26 14:15:00",
"id" => nil,
"name" => "Laura",
"rank" => 2
},
attr_reader :association_cache = {},
attr_reader :changed_attributes = {
"admin" => nil,
"created_at" => nil,
"name" => nil,
"rank" => nil
}
>
]

View file

@ -0,0 +1,50 @@
[
[0] #<User:placeholder_id
@aggregation_cache = {},
@attributes_cache = {},
@destroyed = false,
@marked_for_destruction = false,
@new_record = true,
@previously_changed = {},
@readonly = false,
attr_accessor :attributes = {
"admin" => false,
"created_at" => "1992-10-10 12:30:00",
"id" => nil,
"name" => "Diana",
"rank" => 1
},
attr_reader :association_cache = {},
attr_reader :changed_attributes = {
"admin" => nil,
"created_at" => nil,
"name" => nil,
"rank" => nil
},
attr_reader :mass_assignment_options = nil
>,
[1] #<User:placeholder_id
@aggregation_cache = {},
@attributes_cache = {},
@destroyed = false,
@marked_for_destruction = false,
@new_record = true,
@previously_changed = {},
@readonly = false,
attr_accessor :attributes = {
"admin" => true,
"created_at" => "2003-05-26 14:15:00",
"id" => nil,
"name" => "Laura",
"rank" => 2
},
attr_reader :association_cache = {},
attr_reader :changed_attributes = {
"admin" => nil,
"created_at" => nil,
"name" => nil,
"rank" => nil
},
attr_reader :mass_assignment_options = nil
>
]

View file

@ -0,0 +1,98 @@
#<User:placeholder_id
@_start_transaction_state = {},
@aggregation_cache = {},
@attributes_cache = {},
@column_types = {
"admin" => #<ActiveRecord::ConnectionAdapters::SQLite3Column:placeholder_id
attr_accessor :coder = nil,
attr_accessor :primary = false,
attr_reader :default = nil,
attr_reader :default_function = nil,
attr_reader :limit = nil,
attr_reader :name = "admin",
attr_reader :null = true,
attr_reader :precision = nil,
attr_reader :scale = nil,
attr_reader :sql_type = "boolean",
attr_reader :type = :boolean
>,
"created_at" => #<ActiveRecord::ConnectionAdapters::SQLite3Column:placeholder_id
attr_accessor :coder = nil,
attr_accessor :primary = false,
attr_reader :default = nil,
attr_reader :default_function = nil,
attr_reader :limit = nil,
attr_reader :name = "created_at",
attr_reader :null = true,
attr_reader :precision = nil,
attr_reader :scale = nil,
attr_reader :sql_type = "datetime",
attr_reader :type = :datetime
>,
"id" => #<ActiveRecord::ConnectionAdapters::SQLite3Column:placeholder_id
attr_accessor :coder = nil,
attr_accessor :primary = true,
attr_reader :default = nil,
attr_reader :default_function = nil,
attr_reader :limit = nil,
attr_reader :name = "id",
attr_reader :null = false,
attr_reader :precision = nil,
attr_reader :scale = nil,
attr_reader :sql_type = "INTEGER",
attr_reader :type = :integer
>,
"name" => #<ActiveRecord::ConnectionAdapters::SQLite3Column:placeholder_id
attr_accessor :coder = nil,
attr_accessor :primary = false,
attr_reader :default = nil,
attr_reader :default_function = nil,
attr_reader :limit = 255,
attr_reader :name = "name",
attr_reader :null = true,
attr_reader :precision = nil,
attr_reader :scale = nil,
attr_reader :sql_type = "varchar(255)",
attr_reader :type = :string
>,
"rank" => #<ActiveRecord::ConnectionAdapters::SQLite3Column:placeholder_id
attr_accessor :coder = nil,
attr_accessor :primary = false,
attr_reader :default = nil,
attr_reader :default_function = nil,
attr_reader :limit = nil,
attr_reader :name = "rank",
attr_reader :null = true,
attr_reader :precision = nil,
attr_reader :scale = nil,
attr_reader :sql_type = "integer",
attr_reader :type = :integer
>
},
@column_types_override = nil,
@destroyed = false,
@marked_for_destruction = false,
@new_record = true,
@previously_changed = {},
@readonly = false,
@reflects_state = [
[0] false
],
@transaction_state = nil,
@txn = nil,
attr_accessor :attributes = {
"admin" => false,
"created_at" => "1992-10-10 12:30:00",
"id" => nil,
"name" => "Diana",
"rank" => 1
},
attr_accessor :destroyed_by_association = nil,
attr_reader :association_cache = {},
attr_reader :changed_attributes = {
"admin" => nil,
"created_at" => nil,
"name" => nil,
"rank" => nil
}
>

View file

@ -0,0 +1,198 @@
[
[0] #<User:placeholder_id
@_start_transaction_state = {},
@aggregation_cache = {},
@attributes_cache = {},
@column_types = {
"admin" => #<ActiveRecord::ConnectionAdapters::SQLite3Column:placeholder_id
attr_accessor :coder = nil,
attr_accessor :primary = false,
attr_reader :default = nil,
attr_reader :default_function = nil,
attr_reader :limit = nil,
attr_reader :name = "admin",
attr_reader :null = true,
attr_reader :precision = nil,
attr_reader :scale = nil,
attr_reader :sql_type = "boolean",
attr_reader :type = :boolean
>,
"created_at" => #<ActiveRecord::ConnectionAdapters::SQLite3Column:placeholder_id
attr_accessor :coder = nil,
attr_accessor :primary = false,
attr_reader :default = nil,
attr_reader :default_function = nil,
attr_reader :limit = nil,
attr_reader :name = "created_at",
attr_reader :null = true,
attr_reader :precision = nil,
attr_reader :scale = nil,
attr_reader :sql_type = "datetime",
attr_reader :type = :datetime
>,
"id" => #<ActiveRecord::ConnectionAdapters::SQLite3Column:placeholder_id
attr_accessor :coder = nil,
attr_accessor :primary = true,
attr_reader :default = nil,
attr_reader :default_function = nil,
attr_reader :limit = nil,
attr_reader :name = "id",
attr_reader :null = false,
attr_reader :precision = nil,
attr_reader :scale = nil,
attr_reader :sql_type = "INTEGER",
attr_reader :type = :integer
>,
"name" => #<ActiveRecord::ConnectionAdapters::SQLite3Column:placeholder_id
attr_accessor :coder = nil,
attr_accessor :primary = false,
attr_reader :default = nil,
attr_reader :default_function = nil,
attr_reader :limit = 255,
attr_reader :name = "name",
attr_reader :null = true,
attr_reader :precision = nil,
attr_reader :scale = nil,
attr_reader :sql_type = "varchar(255)",
attr_reader :type = :string
>,
"rank" => #<ActiveRecord::ConnectionAdapters::SQLite3Column:placeholder_id
attr_accessor :coder = nil,
attr_accessor :primary = false,
attr_reader :default = nil,
attr_reader :default_function = nil,
attr_reader :limit = nil,
attr_reader :name = "rank",
attr_reader :null = true,
attr_reader :precision = nil,
attr_reader :scale = nil,
attr_reader :sql_type = "integer",
attr_reader :type = :integer
>
},
@column_types_override = nil,
@destroyed = false,
@marked_for_destruction = false,
@new_record = true,
@previously_changed = {},
@readonly = false,
@reflects_state = [
[0] false
],
@transaction_state = nil,
@txn = nil,
attr_accessor :attributes = {
"admin" => false,
"created_at" => "1992-10-10 12:30:00",
"id" => nil,
"name" => "Diana",
"rank" => 1
},
attr_accessor :destroyed_by_association = nil,
attr_reader :association_cache = {},
attr_reader :changed_attributes = {
"admin" => nil,
"created_at" => nil,
"name" => nil,
"rank" => nil
}
>,
[1] #<User:placeholder_id
@_start_transaction_state = {},
@aggregation_cache = {},
@attributes_cache = {},
@column_types = {
"admin" => #<ActiveRecord::ConnectionAdapters::SQLite3Column:placeholder_id
attr_accessor :coder = nil,
attr_accessor :primary = false,
attr_reader :default = nil,
attr_reader :default_function = nil,
attr_reader :limit = nil,
attr_reader :name = "admin",
attr_reader :null = true,
attr_reader :precision = nil,
attr_reader :scale = nil,
attr_reader :sql_type = "boolean",
attr_reader :type = :boolean
>,
"created_at" => #<ActiveRecord::ConnectionAdapters::SQLite3Column:placeholder_id
attr_accessor :coder = nil,
attr_accessor :primary = false,
attr_reader :default = nil,
attr_reader :default_function = nil,
attr_reader :limit = nil,
attr_reader :name = "created_at",
attr_reader :null = true,
attr_reader :precision = nil,
attr_reader :scale = nil,
attr_reader :sql_type = "datetime",
attr_reader :type = :datetime
>,
"id" => #<ActiveRecord::ConnectionAdapters::SQLite3Column:placeholder_id
attr_accessor :coder = nil,
attr_accessor :primary = true,
attr_reader :default = nil,
attr_reader :default_function = nil,
attr_reader :limit = nil,
attr_reader :name = "id",
attr_reader :null = false,
attr_reader :precision = nil,
attr_reader :scale = nil,
attr_reader :sql_type = "INTEGER",
attr_reader :type = :integer
>,
"name" => #<ActiveRecord::ConnectionAdapters::SQLite3Column:placeholder_id
attr_accessor :coder = nil,
attr_accessor :primary = false,
attr_reader :default = nil,
attr_reader :default_function = nil,
attr_reader :limit = 255,
attr_reader :name = "name",
attr_reader :null = true,
attr_reader :precision = nil,
attr_reader :scale = nil,
attr_reader :sql_type = "varchar(255)",
attr_reader :type = :string
>,
"rank" => #<ActiveRecord::ConnectionAdapters::SQLite3Column:placeholder_id
attr_accessor :coder = nil,
attr_accessor :primary = false,
attr_reader :default = nil,
attr_reader :default_function = nil,
attr_reader :limit = nil,
attr_reader :name = "rank",
attr_reader :null = true,
attr_reader :precision = nil,
attr_reader :scale = nil,
attr_reader :sql_type = "integer",
attr_reader :type = :integer
>
},
@column_types_override = nil,
@destroyed = false,
@marked_for_destruction = false,
@new_record = true,
@previously_changed = {},
@readonly = false,
@reflects_state = [
[0] false
],
@transaction_state = nil,
@txn = nil,
attr_accessor :attributes = {
"admin" => true,
"created_at" => "2003-05-26 14:15:00",
"id" => nil,
"name" => "Laura",
"rank" => 2
},
attr_accessor :destroyed_by_association = nil,
attr_reader :association_cache = {},
attr_reader :changed_attributes = {
"admin" => nil,
"created_at" => nil,
"name" => nil,
"rank" => nil
}
>
]

View file

@ -0,0 +1,97 @@
#<User:placeholder_id
@_start_transaction_state = {},
@aggregation_cache = {},
@attributes_cache = {},
@column_types = {
"admin" => #<ActiveRecord::ConnectionAdapters::SQLite3Column:placeholder_id
attr_accessor :coder = nil,
attr_accessor :primary = false,
attr_reader :default = nil,
attr_reader :default_function = nil,
attr_reader :limit = nil,
attr_reader :name = "admin",
attr_reader :null = true,
attr_reader :precision = nil,
attr_reader :scale = nil,
attr_reader :sql_type = "boolean",
attr_reader :type = :boolean
>,
"created_at" => #<ActiveRecord::ConnectionAdapters::SQLite3Column:placeholder_id
attr_accessor :coder = nil,
attr_accessor :primary = false,
attr_reader :default = nil,
attr_reader :default_function = nil,
attr_reader :limit = nil,
attr_reader :name = "created_at",
attr_reader :null = true,
attr_reader :precision = nil,
attr_reader :scale = nil,
attr_reader :sql_type = "datetime",
attr_reader :type = :datetime
>,
"id" => #<ActiveRecord::ConnectionAdapters::SQLite3Column:placeholder_id
attr_accessor :coder = nil,
attr_accessor :primary = true,
attr_reader :default = nil,
attr_reader :default_function = nil,
attr_reader :limit = nil,
attr_reader :name = "id",
attr_reader :null = false,
attr_reader :precision = nil,
attr_reader :scale = nil,
attr_reader :sql_type = "INTEGER",
attr_reader :type = :integer
>,
"name" => #<ActiveRecord::ConnectionAdapters::SQLite3Column:placeholder_id
attr_accessor :coder = nil,
attr_accessor :primary = false,
attr_reader :default = nil,
attr_reader :default_function = nil,
attr_reader :limit = 255,
attr_reader :name = "name",
attr_reader :null = true,
attr_reader :precision = nil,
attr_reader :scale = nil,
attr_reader :sql_type = "varchar(255)",
attr_reader :type = :string
>,
"rank" => #<ActiveRecord::ConnectionAdapters::SQLite3Column:placeholder_id
attr_accessor :coder = nil,
attr_accessor :primary = false,
attr_reader :default = nil,
attr_reader :default_function = nil,
attr_reader :limit = nil,
attr_reader :name = "rank",
attr_reader :null = true,
attr_reader :precision = nil,
attr_reader :scale = nil,
attr_reader :sql_type = "integer",
attr_reader :type = :integer
>
},
@column_types_override = nil,
@destroyed = false,
@marked_for_destruction = false,
@new_record = true,
@readonly = false,
@reflects_state = [
[0] false
],
@transaction_state = nil,
@txn = nil,
attr_accessor :attributes = {
"admin" => false,
"created_at" => "1992-10-10 12:30:00",
"id" => nil,
"name" => "Diana",
"rank" => 1
},
attr_accessor :destroyed_by_association = nil,
attr_reader :association_cache = {},
attr_reader :changed_attributes = {
"admin" => nil,
"created_at" => nil,
"name" => nil,
"rank" => nil
}
>

View file

@ -0,0 +1,196 @@
[
[0] #<User:placeholder_id
@_start_transaction_state = {},
@aggregation_cache = {},
@attributes_cache = {},
@column_types = {
"admin" => #<ActiveRecord::ConnectionAdapters::SQLite3Column:placeholder_id
attr_accessor :coder = nil,
attr_accessor :primary = false,
attr_reader :default = nil,
attr_reader :default_function = nil,
attr_reader :limit = nil,
attr_reader :name = "admin",
attr_reader :null = true,
attr_reader :precision = nil,
attr_reader :scale = nil,
attr_reader :sql_type = "boolean",
attr_reader :type = :boolean
>,
"created_at" => #<ActiveRecord::ConnectionAdapters::SQLite3Column:placeholder_id
attr_accessor :coder = nil,
attr_accessor :primary = false,
attr_reader :default = nil,
attr_reader :default_function = nil,
attr_reader :limit = nil,
attr_reader :name = "created_at",
attr_reader :null = true,
attr_reader :precision = nil,
attr_reader :scale = nil,
attr_reader :sql_type = "datetime",
attr_reader :type = :datetime
>,
"id" => #<ActiveRecord::ConnectionAdapters::SQLite3Column:placeholder_id
attr_accessor :coder = nil,
attr_accessor :primary = true,
attr_reader :default = nil,
attr_reader :default_function = nil,
attr_reader :limit = nil,
attr_reader :name = "id",
attr_reader :null = false,
attr_reader :precision = nil,
attr_reader :scale = nil,
attr_reader :sql_type = "INTEGER",
attr_reader :type = :integer
>,
"name" => #<ActiveRecord::ConnectionAdapters::SQLite3Column:placeholder_id
attr_accessor :coder = nil,
attr_accessor :primary = false,
attr_reader :default = nil,
attr_reader :default_function = nil,
attr_reader :limit = 255,
attr_reader :name = "name",
attr_reader :null = true,
attr_reader :precision = nil,
attr_reader :scale = nil,
attr_reader :sql_type = "varchar(255)",
attr_reader :type = :string
>,
"rank" => #<ActiveRecord::ConnectionAdapters::SQLite3Column:placeholder_id
attr_accessor :coder = nil,
attr_accessor :primary = false,
attr_reader :default = nil,
attr_reader :default_function = nil,
attr_reader :limit = nil,
attr_reader :name = "rank",
attr_reader :null = true,
attr_reader :precision = nil,
attr_reader :scale = nil,
attr_reader :sql_type = "integer",
attr_reader :type = :integer
>
},
@column_types_override = nil,
@destroyed = false,
@marked_for_destruction = false,
@new_record = true,
@readonly = false,
@reflects_state = [
[0] false
],
@transaction_state = nil,
@txn = nil,
attr_accessor :attributes = {
"admin" => false,
"created_at" => "1992-10-10 12:30:00",
"id" => nil,
"name" => "Diana",
"rank" => 1
},
attr_accessor :destroyed_by_association = nil,
attr_reader :association_cache = {},
attr_reader :changed_attributes = {
"admin" => nil,
"created_at" => nil,
"name" => nil,
"rank" => nil
}
>,
[1] #<User:placeholder_id
@_start_transaction_state = {},
@aggregation_cache = {},
@attributes_cache = {},
@column_types = {
"admin" => #<ActiveRecord::ConnectionAdapters::SQLite3Column:placeholder_id
attr_accessor :coder = nil,
attr_accessor :primary = false,
attr_reader :default = nil,
attr_reader :default_function = nil,
attr_reader :limit = nil,
attr_reader :name = "admin",
attr_reader :null = true,
attr_reader :precision = nil,
attr_reader :scale = nil,
attr_reader :sql_type = "boolean",
attr_reader :type = :boolean
>,
"created_at" => #<ActiveRecord::ConnectionAdapters::SQLite3Column:placeholder_id
attr_accessor :coder = nil,
attr_accessor :primary = false,
attr_reader :default = nil,
attr_reader :default_function = nil,
attr_reader :limit = nil,
attr_reader :name = "created_at",
attr_reader :null = true,
attr_reader :precision = nil,
attr_reader :scale = nil,
attr_reader :sql_type = "datetime",
attr_reader :type = :datetime
>,
"id" => #<ActiveRecord::ConnectionAdapters::SQLite3Column:placeholder_id
attr_accessor :coder = nil,
attr_accessor :primary = true,
attr_reader :default = nil,
attr_reader :default_function = nil,
attr_reader :limit = nil,
attr_reader :name = "id",
attr_reader :null = false,
attr_reader :precision = nil,
attr_reader :scale = nil,
attr_reader :sql_type = "INTEGER",
attr_reader :type = :integer
>,
"name" => #<ActiveRecord::ConnectionAdapters::SQLite3Column:placeholder_id
attr_accessor :coder = nil,
attr_accessor :primary = false,
attr_reader :default = nil,
attr_reader :default_function = nil,
attr_reader :limit = 255,
attr_reader :name = "name",
attr_reader :null = true,
attr_reader :precision = nil,
attr_reader :scale = nil,
attr_reader :sql_type = "varchar(255)",
attr_reader :type = :string
>,
"rank" => #<ActiveRecord::ConnectionAdapters::SQLite3Column:placeholder_id
attr_accessor :coder = nil,
attr_accessor :primary = false,
attr_reader :default = nil,
attr_reader :default_function = nil,
attr_reader :limit = nil,
attr_reader :name = "rank",
attr_reader :null = true,
attr_reader :precision = nil,
attr_reader :scale = nil,
attr_reader :sql_type = "integer",
attr_reader :type = :integer
>
},
@column_types_override = nil,
@destroyed = false,
@marked_for_destruction = false,
@new_record = true,
@readonly = false,
@reflects_state = [
[0] false
],
@transaction_state = nil,
@txn = nil,
attr_accessor :attributes = {
"admin" => true,
"created_at" => "2003-05-26 14:15:00",
"id" => nil,
"name" => "Laura",
"rank" => 2
},
attr_accessor :destroyed_by_association = nil,
attr_reader :association_cache = {},
attr_reader :changed_attributes = {
"admin" => nil,
"created_at" => nil,
"name" => nil,
"rank" => nil
}
>
]

View file

@ -0,0 +1,109 @@
#<User:placeholder_id
@_start_transaction_state = {},
@aggregation_cache = {},
@destroyed = false,
@marked_for_destruction = false,
@new_record = true,
@original_raw_attributes = {
"admin" => false,
"created_at" => 1992-10-10 12:30:00 UTC,
"name" => "Diana",
"rank" => 1
},
@readonly = false,
@transaction_state = nil,
@txn = nil,
attr_accessor :attributes = #<ActiveRecord::AttributeSet:placeholder_id
@attributes = #<ActiveRecord::LazyAttributeHash:placeholder_id
@additional_types = {},
@delegate_hash = {
"admin" => #<ActiveRecord::Attribute::FromUser:placeholder_id
attr_reader :name = "admin",
attr_reader :type = #<ActiveRecord::Type::Boolean:placeholder_id
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
>,
attr_reader :value = false,
attr_reader :value_before_type_cast = false
>,
"created_at" => #<ActiveRecord::Attribute::FromUser:placeholder_id
attr_reader :name = "created_at",
attr_reader :type = #<ActiveRecord::Type::DateTime:placeholder_id
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
>,
attr_reader :value = 1992-10-10 12:30:00 UTC,
attr_reader :value_before_type_cast = "1992-10-10 12:30:00"
>,
"name" => #<ActiveRecord::Attribute::FromUser:placeholder_id
attr_reader :name = "name",
attr_reader :type = #<ActiveRecord::Type::String:placeholder_id
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
>,
attr_reader :value = "Diana",
attr_reader :value_before_type_cast = "Diana"
>,
"rank" => #<ActiveRecord::Attribute::FromUser:placeholder_id
attr_reader :name = "rank",
attr_reader :type = #<ActiveRecord::Type::Integer:placeholder_id
@range = -2147483648...2147483648,
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
>,
attr_reader :value = 1,
attr_reader :value_before_type_cast = 1
>
},
@materialized = false,
@types = {
"admin" => #<ActiveRecord::Type::Boolean:placeholder_id
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
>,
"created_at" => #<ActiveRecord::Type::DateTime:placeholder_id
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
>,
"id" => #<ActiveRecord::Type::Integer:placeholder_id
@range = -2147483648...2147483648,
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
>,
"name" => #<ActiveRecord::Type::String:placeholder_id
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
>,
"rank" => #<ActiveRecord::Type::Integer:placeholder_id
@range = -2147483648...2147483648,
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
>
},
@values = {
"admin" => nil,
"created_at" => nil,
"id" => nil,
"name" => nil,
"rank" => nil
}
>
>,
attr_accessor :destroyed_by_association = nil,
attr_reader :association_cache = {},
attr_reader :changed_attributes = {
"admin" => nil,
"created_at" => nil,
"name" => nil,
"rank" => nil
}
>

View file

@ -0,0 +1,109 @@
#<User:placeholder_id
@_start_transaction_state = {},
@aggregation_cache = {},
@destroyed = false,
@marked_for_destruction = false,
@new_record = true,
@original_raw_attributes = {
"admin" => false,
"created_at" => 1992-10-10 12:30:00 UTC,
"name" => "Diana",
"rank" => 1
},
@readonly = false,
@transaction_state = nil,
@txn = nil,
attr_accessor :attributes = #<ActiveRecord::AttributeSet:placeholder_id
attr_reader :attributes = #<ActiveRecord::LazyAttributeHash:placeholder_id
@materialized = false,
attr_reader :additional_types = {},
attr_reader :delegate_hash = {
"admin" => #<ActiveRecord::Attribute::FromUser:placeholder_id
attr_reader :name = "admin",
attr_reader :type = #<ActiveRecord::Type::Boolean:placeholder_id
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
>,
attr_reader :value = false,
attr_reader :value_before_type_cast = false
>,
"created_at" => #<ActiveRecord::Attribute::FromUser:placeholder_id
attr_reader :name = "created_at",
attr_reader :type = #<ActiveRecord::Type::DateTime:placeholder_id
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
>,
attr_reader :value = 1992-10-10 12:30:00 UTC,
attr_reader :value_before_type_cast = "1992-10-10 12:30:00"
>,
"name" => #<ActiveRecord::Attribute::FromUser:placeholder_id
attr_reader :name = "name",
attr_reader :type = #<ActiveRecord::Type::String:placeholder_id
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
>,
attr_reader :value = "Diana",
attr_reader :value_before_type_cast = "Diana"
>,
"rank" => #<ActiveRecord::Attribute::FromUser:placeholder_id
attr_reader :name = "rank",
attr_reader :type = #<ActiveRecord::Type::Integer:placeholder_id
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :range = -2147483648...2147483648,
attr_reader :scale = nil
>,
attr_reader :value = 1,
attr_reader :value_before_type_cast = 1
>
},
attr_reader :types = {
"admin" => #<ActiveRecord::Type::Boolean:placeholder_id
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
>,
"created_at" => #<ActiveRecord::Type::DateTime:placeholder_id
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
>,
"id" => #<ActiveRecord::Type::Integer:placeholder_id
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :range = -2147483648...2147483648,
attr_reader :scale = nil
>,
"name" => #<ActiveRecord::Type::String:placeholder_id
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
>,
"rank" => #<ActiveRecord::Type::Integer:placeholder_id
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :range = -2147483648...2147483648,
attr_reader :scale = nil
>
},
attr_reader :values = {
"admin" => nil,
"created_at" => nil,
"id" => nil,
"name" => nil,
"rank" => nil
}
>
>,
attr_accessor :destroyed_by_association = nil,
attr_reader :association_cache = {},
attr_reader :changed_attributes = {
"admin" => nil,
"created_at" => nil,
"name" => nil,
"rank" => nil
}
>

View file

@ -0,0 +1,220 @@
[
[0] #<User:placeholder_id
@_start_transaction_state = {},
@aggregation_cache = {},
@destroyed = false,
@marked_for_destruction = false,
@new_record = true,
@original_raw_attributes = {
"admin" => false,
"created_at" => 1992-10-10 12:30:00 UTC,
"name" => "Diana",
"rank" => 1
},
@readonly = false,
@transaction_state = nil,
@txn = nil,
attr_accessor :attributes = #<ActiveRecord::AttributeSet:placeholder_id
@attributes = #<ActiveRecord::LazyAttributeHash:placeholder_id
@additional_types = {},
@delegate_hash = {
"admin" => #<ActiveRecord::Attribute::FromUser:placeholder_id
attr_reader :name = "admin",
attr_reader :type = #<ActiveRecord::Type::Boolean:placeholder_id
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
>,
attr_reader :value = false,
attr_reader :value_before_type_cast = false
>,
"created_at" => #<ActiveRecord::Attribute::FromUser:placeholder_id
attr_reader :name = "created_at",
attr_reader :type = #<ActiveRecord::Type::DateTime:placeholder_id
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
>,
attr_reader :value = 1992-10-10 12:30:00 UTC,
attr_reader :value_before_type_cast = "1992-10-10 12:30:00"
>,
"name" => #<ActiveRecord::Attribute::FromUser:placeholder_id
attr_reader :name = "name",
attr_reader :type = #<ActiveRecord::Type::String:placeholder_id
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
>,
attr_reader :value = "Diana",
attr_reader :value_before_type_cast = "Diana"
>,
"rank" => #<ActiveRecord::Attribute::FromUser:placeholder_id
attr_reader :name = "rank",
attr_reader :type = #<ActiveRecord::Type::Integer:placeholder_id
@range = -2147483648...2147483648,
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
>,
attr_reader :value = 1,
attr_reader :value_before_type_cast = 1
>
},
@materialized = false,
@types = {
"admin" => #<ActiveRecord::Type::Boolean:placeholder_id
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
>,
"created_at" => #<ActiveRecord::Type::DateTime:placeholder_id
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
>,
"id" => #<ActiveRecord::Type::Integer:placeholder_id
@range = -2147483648...2147483648,
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
>,
"name" => #<ActiveRecord::Type::String:placeholder_id
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
>,
"rank" => #<ActiveRecord::Type::Integer:placeholder_id
@range = -2147483648...2147483648,
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
>
},
@values = {
"admin" => nil,
"created_at" => nil,
"id" => nil,
"name" => nil,
"rank" => nil
}
>
>,
attr_accessor :destroyed_by_association = nil,
attr_reader :association_cache = {},
attr_reader :changed_attributes = {
"admin" => nil,
"created_at" => nil,
"name" => nil,
"rank" => nil
}
>,
[1] #<User:placeholder_id
@_start_transaction_state = {},
@aggregation_cache = {},
@destroyed = false,
@marked_for_destruction = false,
@new_record = true,
@original_raw_attributes = {
"admin" => true,
"created_at" => 2003-05-26 14:15:00 UTC,
"name" => "Laura",
"rank" => 2
},
@readonly = false,
@transaction_state = nil,
@txn = nil,
attr_accessor :attributes = #<ActiveRecord::AttributeSet:placeholder_id
@attributes = #<ActiveRecord::LazyAttributeHash:placeholder_id
@additional_types = {},
@delegate_hash = {
"admin" => #<ActiveRecord::Attribute::FromUser:placeholder_id
attr_reader :name = "admin",
attr_reader :type = #<ActiveRecord::Type::Boolean:placeholder_id
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
>,
attr_reader :value = true,
attr_reader :value_before_type_cast = true
>,
"created_at" => #<ActiveRecord::Attribute::FromUser:placeholder_id
attr_reader :name = "created_at",
attr_reader :type = #<ActiveRecord::Type::DateTime:placeholder_id
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
>,
attr_reader :value = 2003-05-26 14:15:00 UTC,
attr_reader :value_before_type_cast = "2003-05-26 14:15:00"
>,
"name" => #<ActiveRecord::Attribute::FromUser:placeholder_id
attr_reader :name = "name",
attr_reader :type = #<ActiveRecord::Type::String:placeholder_id
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
>,
attr_reader :value = "Laura",
attr_reader :value_before_type_cast = "Laura"
>,
"rank" => #<ActiveRecord::Attribute::FromUser:placeholder_id
attr_reader :name = "rank",
attr_reader :type = #<ActiveRecord::Type::Integer:placeholder_id
@range = -2147483648...2147483648,
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
>,
attr_reader :value = 2,
attr_reader :value_before_type_cast = 2
>
},
@materialized = false,
@types = {
"admin" => #<ActiveRecord::Type::Boolean:placeholder_id
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
>,
"created_at" => #<ActiveRecord::Type::DateTime:placeholder_id
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
>,
"id" => #<ActiveRecord::Type::Integer:placeholder_id
@range = -2147483648...2147483648,
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
>,
"name" => #<ActiveRecord::Type::String:placeholder_id
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
>,
"rank" => #<ActiveRecord::Type::Integer:placeholder_id
@range = -2147483648...2147483648,
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
>
},
@values = {
"admin" => nil,
"created_at" => nil,
"id" => nil,
"name" => nil,
"rank" => nil
}
>
>,
attr_accessor :destroyed_by_association = nil,
attr_reader :association_cache = {},
attr_reader :changed_attributes = {
"admin" => nil,
"created_at" => nil,
"name" => nil,
"rank" => nil
}
>
]

View file

@ -0,0 +1,220 @@
[
[0] #<User:placeholder_id
@_start_transaction_state = {},
@aggregation_cache = {},
@destroyed = false,
@marked_for_destruction = false,
@new_record = true,
@original_raw_attributes = {
"admin" => false,
"created_at" => 1992-10-10 12:30:00 UTC,
"name" => "Diana",
"rank" => 1
},
@readonly = false,
@transaction_state = nil,
@txn = nil,
attr_accessor :attributes = #<ActiveRecord::AttributeSet:placeholder_id
attr_reader :attributes = #<ActiveRecord::LazyAttributeHash:placeholder_id
@materialized = false,
attr_reader :additional_types = {},
attr_reader :delegate_hash = {
"admin" => #<ActiveRecord::Attribute::FromUser:placeholder_id
attr_reader :name = "admin",
attr_reader :type = #<ActiveRecord::Type::Boolean:placeholder_id
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
>,
attr_reader :value = false,
attr_reader :value_before_type_cast = false
>,
"created_at" => #<ActiveRecord::Attribute::FromUser:placeholder_id
attr_reader :name = "created_at",
attr_reader :type = #<ActiveRecord::Type::DateTime:placeholder_id
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
>,
attr_reader :value = 1992-10-10 12:30:00 UTC,
attr_reader :value_before_type_cast = "1992-10-10 12:30:00"
>,
"name" => #<ActiveRecord::Attribute::FromUser:placeholder_id
attr_reader :name = "name",
attr_reader :type = #<ActiveRecord::Type::String:placeholder_id
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
>,
attr_reader :value = "Diana",
attr_reader :value_before_type_cast = "Diana"
>,
"rank" => #<ActiveRecord::Attribute::FromUser:placeholder_id
attr_reader :name = "rank",
attr_reader :type = #<ActiveRecord::Type::Integer:placeholder_id
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :range = -2147483648...2147483648,
attr_reader :scale = nil
>,
attr_reader :value = 1,
attr_reader :value_before_type_cast = 1
>
},
attr_reader :types = {
"admin" => #<ActiveRecord::Type::Boolean:placeholder_id
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
>,
"created_at" => #<ActiveRecord::Type::DateTime:placeholder_id
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
>,
"id" => #<ActiveRecord::Type::Integer:placeholder_id
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :range = -2147483648...2147483648,
attr_reader :scale = nil
>,
"name" => #<ActiveRecord::Type::String:placeholder_id
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
>,
"rank" => #<ActiveRecord::Type::Integer:placeholder_id
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :range = -2147483648...2147483648,
attr_reader :scale = nil
>
},
attr_reader :values = {
"admin" => nil,
"created_at" => nil,
"id" => nil,
"name" => nil,
"rank" => nil
}
>
>,
attr_accessor :destroyed_by_association = nil,
attr_reader :association_cache = {},
attr_reader :changed_attributes = {
"admin" => nil,
"created_at" => nil,
"name" => nil,
"rank" => nil
}
>,
[1] #<User:placeholder_id
@_start_transaction_state = {},
@aggregation_cache = {},
@destroyed = false,
@marked_for_destruction = false,
@new_record = true,
@original_raw_attributes = {
"admin" => true,
"created_at" => 2003-05-26 14:15:00 UTC,
"name" => "Laura",
"rank" => 2
},
@readonly = false,
@transaction_state = nil,
@txn = nil,
attr_accessor :attributes = #<ActiveRecord::AttributeSet:placeholder_id
attr_reader :attributes = #<ActiveRecord::LazyAttributeHash:placeholder_id
@materialized = false,
attr_reader :additional_types = {},
attr_reader :delegate_hash = {
"admin" => #<ActiveRecord::Attribute::FromUser:placeholder_id
attr_reader :name = "admin",
attr_reader :type = #<ActiveRecord::Type::Boolean:placeholder_id
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
>,
attr_reader :value = true,
attr_reader :value_before_type_cast = true
>,
"created_at" => #<ActiveRecord::Attribute::FromUser:placeholder_id
attr_reader :name = "created_at",
attr_reader :type = #<ActiveRecord::Type::DateTime:placeholder_id
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
>,
attr_reader :value = 2003-05-26 14:15:00 UTC,
attr_reader :value_before_type_cast = "2003-05-26 14:15:00"
>,
"name" => #<ActiveRecord::Attribute::FromUser:placeholder_id
attr_reader :name = "name",
attr_reader :type = #<ActiveRecord::Type::String:placeholder_id
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
>,
attr_reader :value = "Laura",
attr_reader :value_before_type_cast = "Laura"
>,
"rank" => #<ActiveRecord::Attribute::FromUser:placeholder_id
attr_reader :name = "rank",
attr_reader :type = #<ActiveRecord::Type::Integer:placeholder_id
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :range = -2147483648...2147483648,
attr_reader :scale = nil
>,
attr_reader :value = 2,
attr_reader :value_before_type_cast = 2
>
},
attr_reader :types = {
"admin" => #<ActiveRecord::Type::Boolean:placeholder_id
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
>,
"created_at" => #<ActiveRecord::Type::DateTime:placeholder_id
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
>,
"id" => #<ActiveRecord::Type::Integer:placeholder_id
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :range = -2147483648...2147483648,
attr_reader :scale = nil
>,
"name" => #<ActiveRecord::Type::String:placeholder_id
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
>,
"rank" => #<ActiveRecord::Type::Integer:placeholder_id
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :range = -2147483648...2147483648,
attr_reader :scale = nil
>
},
attr_reader :values = {
"admin" => nil,
"created_at" => nil,
"id" => nil,
"name" => nil,
"rank" => nil
}
>
>,
attr_accessor :destroyed_by_association = nil,
attr_reader :association_cache = {},
attr_reader :changed_attributes = {
"admin" => nil,
"created_at" => nil,
"name" => nil,
"rank" => nil
}
>
]

View file

@ -0,0 +1,105 @@
#<User:placeholder_id
@_start_transaction_state = {},
@aggregation_cache = {},
@association_cache = {},
@destroyed = false,
@marked_for_destruction = false,
@new_record = true,
@readonly = false,
@transaction_state = nil,
@txn = nil,
attr_accessor :attributes = #<ActiveRecord::AttributeSet:placeholder_id
@attributes = {
"admin" => #<ActiveRecord::Attribute::FromUser:placeholder_id
@original_attribute = #<ActiveRecord::Attribute::FromDatabase:placeholder_id
@original_attribute = nil,
attr_reader :name = "admin",
attr_reader :type = #<ActiveModel::Type::Boolean:placeholder_id
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
>,
attr_reader :value_before_type_cast = nil
>,
attr_reader :name = "admin",
attr_reader :type = #<ActiveModel::Type::Boolean:placeholder_id
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
>,
attr_reader :value_before_type_cast = false
>,
"created_at" => #<ActiveRecord::Attribute::FromUser:placeholder_id
@original_attribute = #<ActiveRecord::Attribute::FromDatabase:placeholder_id
@original_attribute = nil,
attr_reader :name = "created_at",
attr_reader :type = #<ActiveRecord::Type::DateTime:placeholder_id
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
>,
attr_reader :value_before_type_cast = nil
>,
attr_reader :name = "created_at",
attr_reader :type = #<ActiveRecord::Type::DateTime:placeholder_id
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
>,
attr_reader :value_before_type_cast = "1992-10-10 12:30:00"
>,
"id" => #<ActiveRecord::Attribute::FromDatabase:placeholder_id
@original_attribute = nil,
attr_reader :name = "id",
attr_reader :type = #<ActiveModel::Type::Integer:placeholder_id
@range = -2147483648...2147483648,
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
>,
attr_reader :value_before_type_cast = nil
>,
"name" => #<ActiveRecord::Attribute::FromUser:placeholder_id
@original_attribute = #<ActiveRecord::Attribute::FromDatabase:placeholder_id
@original_attribute = nil,
attr_reader :name = "name",
attr_reader :type = #<ActiveModel::Type::String:placeholder_id
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
>,
attr_reader :value_before_type_cast = nil
>,
attr_reader :name = "name",
attr_reader :type = #<ActiveModel::Type::String:placeholder_id
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
>,
attr_reader :value_before_type_cast = "Diana"
>,
"rank" => #<ActiveRecord::Attribute::FromUser:placeholder_id
@original_attribute = #<ActiveRecord::Attribute::FromDatabase:placeholder_id
@original_attribute = nil,
attr_reader :name = "rank",
attr_reader :type = #<ActiveModel::Type::Integer:placeholder_id
@range = -2147483648...2147483648,
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
>,
attr_reader :value_before_type_cast = nil
>,
attr_reader :name = "rank",
attr_reader :type = #<ActiveModel::Type::Integer:placeholder_id
@range = -2147483648...2147483648,
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
>,
attr_reader :value_before_type_cast = 1
>
}
>,
attr_accessor :destroyed_by_association = nil
>

View file

@ -0,0 +1,212 @@
[
[0] #<User:placeholder_id
@_start_transaction_state = {},
@aggregation_cache = {},
@association_cache = {},
@destroyed = false,
@marked_for_destruction = false,
@new_record = true,
@readonly = false,
@transaction_state = nil,
@txn = nil,
attr_accessor :attributes = #<ActiveRecord::AttributeSet:placeholder_id
@attributes = {
"admin" => #<ActiveRecord::Attribute::FromUser:placeholder_id
@original_attribute = #<ActiveRecord::Attribute::FromDatabase:placeholder_id
@original_attribute = nil,
attr_reader :name = "admin",
attr_reader :type = #<ActiveModel::Type::Boolean:placeholder_id
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
>,
attr_reader :value_before_type_cast = nil
>,
attr_reader :name = "admin",
attr_reader :type = #<ActiveModel::Type::Boolean:placeholder_id
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
>,
attr_reader :value_before_type_cast = false
>,
"created_at" => #<ActiveRecord::Attribute::FromUser:placeholder_id
@original_attribute = #<ActiveRecord::Attribute::FromDatabase:placeholder_id
@original_attribute = nil,
attr_reader :name = "created_at",
attr_reader :type = #<ActiveRecord::Type::DateTime:placeholder_id
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
>,
attr_reader :value_before_type_cast = nil
>,
attr_reader :name = "created_at",
attr_reader :type = #<ActiveRecord::Type::DateTime:placeholder_id
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
>,
attr_reader :value_before_type_cast = "1992-10-10 12:30:00"
>,
"id" => #<ActiveRecord::Attribute::FromDatabase:placeholder_id
@original_attribute = nil,
attr_reader :name = "id",
attr_reader :type = #<ActiveModel::Type::Integer:placeholder_id
@range = -2147483648...2147483648,
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
>,
attr_reader :value_before_type_cast = nil
>,
"name" => #<ActiveRecord::Attribute::FromUser:placeholder_id
@original_attribute = #<ActiveRecord::Attribute::FromDatabase:placeholder_id
@original_attribute = nil,
attr_reader :name = "name",
attr_reader :type = #<ActiveModel::Type::String:placeholder_id
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
>,
attr_reader :value_before_type_cast = nil
>,
attr_reader :name = "name",
attr_reader :type = #<ActiveModel::Type::String:placeholder_id
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
>,
attr_reader :value_before_type_cast = "Diana"
>,
"rank" => #<ActiveRecord::Attribute::FromUser:placeholder_id
@original_attribute = #<ActiveRecord::Attribute::FromDatabase:placeholder_id
@original_attribute = nil,
attr_reader :name = "rank",
attr_reader :type = #<ActiveModel::Type::Integer:placeholder_id
@range = -2147483648...2147483648,
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
>,
attr_reader :value_before_type_cast = nil
>,
attr_reader :name = "rank",
attr_reader :type = #<ActiveModel::Type::Integer:placeholder_id
@range = -2147483648...2147483648,
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
>,
attr_reader :value_before_type_cast = 1
>
}
>,
attr_accessor :destroyed_by_association = nil
>,
[1] #<User:placeholder_id
@_start_transaction_state = {},
@aggregation_cache = {},
@association_cache = {},
@destroyed = false,
@marked_for_destruction = false,
@new_record = true,
@readonly = false,
@transaction_state = nil,
@txn = nil,
attr_accessor :attributes = #<ActiveRecord::AttributeSet:placeholder_id
@attributes = {
"admin" => #<ActiveRecord::Attribute::FromUser:placeholder_id
@original_attribute = #<ActiveRecord::Attribute::FromDatabase:placeholder_id
@original_attribute = nil,
attr_reader :name = "admin",
attr_reader :type = #<ActiveModel::Type::Boolean:placeholder_id
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
>,
attr_reader :value_before_type_cast = nil
>,
attr_reader :name = "admin",
attr_reader :type = #<ActiveModel::Type::Boolean:placeholder_id
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
>,
attr_reader :value_before_type_cast = true
>,
"created_at" => #<ActiveRecord::Attribute::FromUser:placeholder_id
@original_attribute = #<ActiveRecord::Attribute::FromDatabase:placeholder_id
@original_attribute = nil,
attr_reader :name = "created_at",
attr_reader :type = #<ActiveRecord::Type::DateTime:placeholder_id
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
>,
attr_reader :value_before_type_cast = nil
>,
attr_reader :name = "created_at",
attr_reader :type = #<ActiveRecord::Type::DateTime:placeholder_id
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
>,
attr_reader :value_before_type_cast = "2003-05-26 14:15:00"
>,
"id" => #<ActiveRecord::Attribute::FromDatabase:placeholder_id
@original_attribute = nil,
attr_reader :name = "id",
attr_reader :type = #<ActiveModel::Type::Integer:placeholder_id
@range = -2147483648...2147483648,
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
>,
attr_reader :value_before_type_cast = nil
>,
"name" => #<ActiveRecord::Attribute::FromUser:placeholder_id
@original_attribute = #<ActiveRecord::Attribute::FromDatabase:placeholder_id
@original_attribute = nil,
attr_reader :name = "name",
attr_reader :type = #<ActiveModel::Type::String:placeholder_id
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
>,
attr_reader :value_before_type_cast = nil
>,
attr_reader :name = "name",
attr_reader :type = #<ActiveModel::Type::String:placeholder_id
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
>,
attr_reader :value_before_type_cast = "Laura"
>,
"rank" => #<ActiveRecord::Attribute::FromUser:placeholder_id
@original_attribute = #<ActiveRecord::Attribute::FromDatabase:placeholder_id
@original_attribute = nil,
attr_reader :name = "rank",
attr_reader :type = #<ActiveModel::Type::Integer:placeholder_id
@range = -2147483648...2147483648,
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
>,
attr_reader :value_before_type_cast = nil
>,
attr_reader :name = "rank",
attr_reader :type = #<ActiveModel::Type::Integer:placeholder_id
@range = -2147483648...2147483648,
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
>,
attr_reader :value_before_type_cast = 2
>
}
>,
attr_accessor :destroyed_by_association = nil
>
]

View file

@ -3,6 +3,11 @@ module RailsVersions
Gem::Version.new(Rails::VERSION::STRING)
end
def rails_5_0?
Gem::Requirement.new('~> 5.0.0.racecar1').satisfied_by?(rails_version)
end
alias_method :activerecord_5_0?, :rails_5_0?
def rails_4_2?
Gem::Requirement.new('~> 4.2.0').satisfied_by?(rails_version)
end