Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

User.as_json

By: a guest on Mar 28th, 2013  |  syntax: JavaScript  |  size: 8.92 KB  |  views: 56  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. {"attribute_methods_mutex"=>#<Mutex:0xa2fe1d0>, "generated_attribute_methods"=>#<Module:0xa2fe1bc>, "generated_feature_methods"=>User::GeneratedFeatureMethods, "parent_name"=>nil, "table_name"=>"users", "quoted_table_name"=>"\"users\"", "arel_table"=>#<Arel::Table:0xa628b08 @name="users", @engine=User(id: integer, email: string, encrypted_password: string, reset_password_token: string, reset_password_sent_at: datetime, remember_created_at: datetime, sign_in_count: integer, current_sign_in_at: datetime, last_sign_in_at: datetime, current_sign_in_ip: string, last_sign_in_ip: string, created_at: datetime, updated_at: datetime), @columns=nil, @aliases=[], @table_alias=nil, @primary_key=nil>, "arel_engine"=>User(id: integer, email: string, encrypted_password: string, reset_password_token: string, reset_password_sent_at: datetime, remember_created_at: datetime, sign_in_count: integer, current_sign_in_at: datetime, last_sign_in_at: datetime, current_sign_in_ip: string, last_sign_in_ip: string, created_at: datetime, updated_at: datetime), "relation"=>[#<User id: 1, email: "test@test.test", encrypted_password: "$2a$10$9jleSieIDkH/5WZGUOpDsOxfcX8.hVvIX1OvvIaw.g7J...", reset_password_token: nil, reset_password_sent_at: nil, remember_created_at: nil, sign_in_count: 1, current_sign_in_at: "2013-03-28 11:45:19", last_sign_in_at: "2013-03-28 11:45:19", current_sign_in_ip: "127.0.0.1", last_sign_in_ip: "127.0.0.1", created_at: "2013-03-28 11:45:19", updated_at: "2013-03-28 11:45:19">, #<User id: 2, email: "test2@test.test", encrypted_password: "$2a$10$MVVjUKFwbwjkdd3UeqSY0uJJjfzg5.Pmum/kRoswI4nv...", reset_password_token: nil, reset_password_sent_at: nil, remember_created_at: nil, sign_in_count: 1, current_sign_in_at: "2013-03-28 11:47:39", last_sign_in_at: "2013-03-28 11:47:39", current_sign_in_ip: "127.0.0.1", last_sign_in_ip: "127.0.0.1", created_at: "2013-03-28 11:47:39", updated_at: "2013-03-28 11:47:39">], "finder_needs_type_condition"=>:false, "primary_key"=>"id", "quoted_primary_key"=>"\"id\"", "columns"=>[#<ActiveRecord::ConnectionAdapters::SQLiteColumn:0xa0cbfd4 @name="id", @sql_type="INTEGER", @null=false, @limit=nil, @precision=nil, @scale=nil, @type=:integer, @default=nil, @primary=true, @coder=nil>, #<ActiveRecord::ConnectionAdapters::SQLiteColumn:0xa0ca788 @name="email", @sql_type="varchar(255)", @null=false, @limit=255, @precision=nil, @scale=nil, @type=:string, @default="", @primary=false, @coder=nil>, #<ActiveRecord::ConnectionAdapters::SQLiteColumn:0xa0ca760 @name="encrypted_password", @sql_type="varchar(255)", @null=false, @limit=255, @precision=nil, @scale=nil, @type=:string, @default="", @primary=false, @coder=nil>, #<ActiveRecord::ConnectionAdapters::SQLiteColumn:0xa0ca738 @name="reset_password_token", @sql_type="varchar(255)", @null=true, @limit=255, @precision=nil, @scale=nil, @type=:string, @default=nil, @primary=false, @coder=nil>, #<ActiveRecord::ConnectionAdapters::SQLiteColumn:0xa0ca710 @name="reset_password_sent_at", @sql_type="datetime", @null=true, @limit=nil, @precision=nil, @scale=nil, @type=:datetime, @default=nil, @primary=false, @coder=nil>, #<ActiveRecord::ConnectionAdapters::SQLiteColumn:0xa0ca6e8 @name="remember_created_at", @sql_type="datetime", @null=true, @limit=nil, @precision=nil, @scale=nil, @type=:datetime, @default=nil, @primary=false, @coder=nil>, #<ActiveRecord::ConnectionAdapters::SQLiteColumn:0xa0ca6c0 @name="sign_in_count", @sql_type="integer", @null=true, @limit=nil, @precision=nil, @scale=nil, @type=:integer, @default=0, @primary=false, @coder=nil>, #<ActiveRecord::ConnectionAdapters::SQLiteColumn:0xa0ca698 @name="current_sign_in_at", @sql_type="datetime", @null=true, @limit=nil, @precision=nil, @scale=nil, @type=:datetime, @default=nil, @primary=false, @coder=nil>, #<ActiveRecord::ConnectionAdapters::SQLiteColumn:0xa0ca670 @name="last_sign_in_at", @sql_type="datetime", @null=true, @limit=nil, @precision=nil, @scale=nil, @type=:datetime, @default=nil, @primary=false, @coder=nil>, #<ActiveRecord::ConnectionAdapters::SQLiteColumn:0xa0ca648 @name="current_sign_in_ip", @sql_type="varchar(255)", @null=true, @limit=255, @precision=nil, @scale=nil, @type=:string, @default=nil, @primary=false, @coder=nil>, #<ActiveRecord::ConnectionAdapters::SQLiteColumn:0xa0ca620 @name="last_sign_in_ip", @sql_type="varchar(255)", @null=true, @limit=255, @precision=nil, @scale=nil, @type=:string, @default=nil, @primary=false, @coder=nil>, #<ActiveRecord::ConnectionAdapters::SQLiteColumn:0xa0ca5f8 @name="created_at", @sql_type="datetime", @null=false, @limit=nil, @precision=nil, @scale=nil, @type=:datetime, @default=nil, @primary=false, @coder=nil>, #<ActiveRecord::ConnectionAdapters::SQLiteColumn:0xa0ca5d0 @name="updated_at", @sql_type="datetime", @null=false, @limit=nil, @precision=nil, @scale=nil, @type=:datetime, @default=nil, @primary=false, @coder=nil>], "columns_hash"=>{"id"=>#<ActiveRecord::ConnectionAdapters::SQLiteColumn:0xa0cbfd4 @name="id", @sql_type="INTEGER", @null=false, @limit=nil, @precision=nil, @scale=nil, @type=:integer, @default=nil, @primary=true, @coder=nil>, "email"=>#<ActiveRecord::ConnectionAdapters::SQLiteColumn:0xa0ca788 @name="email", @sql_type="varchar(255)", @null=false, @limit=255, @precision=nil, @scale=nil, @type=:string, @default="", @primary=false, @coder=nil>, "encrypted_password"=>#<ActiveRecord::ConnectionAdapters::SQLiteColumn:0xa0ca760 @name="encrypted_password", @sql_type="varchar(255)", @null=false, @limit=255, @precision=nil, @scale=nil, @type=:string, @default="", @primary=false, @coder=nil>, "reset_password_token"=>#<ActiveRecord::ConnectionAdapters::SQLiteColumn:0xa0ca738 @name="reset_password_token", @sql_type="varchar(255)", @null=true, @limit=255, @precision=nil, @scale=nil, @type=:string, @default=nil, @primary=false, @coder=nil>, "reset_password_sent_at"=>#<ActiveRecord::ConnectionAdapters::SQLiteColumn:0xa0ca710 @name="reset_password_sent_at", @sql_type="datetime", @null=true, @limit=nil, @precision=nil, @scale=nil, @type=:datetime, @default=nil, @primary=false, @coder=nil>, "remember_created_at"=>#<ActiveRecord::ConnectionAdapters::SQLiteColumn:0xa0ca6e8 @name="remember_created_at", @sql_type="datetime", @null=true, @limit=nil, @precision=nil, @scale=nil, @type=:datetime, @default=nil, @primary=false, @coder=nil>, "sign_in_count"=>#<ActiveRecord::ConnectionAdapters::SQLiteColumn:0xa0ca6c0 @name="sign_in_count", @sql_type="integer", @null=true, @limit=nil, @precision=nil, @scale=nil, @type=:integer, @default=0, @primary=false, @coder=nil>, "current_sign_in_at"=>#<ActiveRecord::ConnectionAdapters::SQLiteColumn:0xa0ca698 @name="current_sign_in_at", @sql_type="datetime", @null=true, @limit=nil, @precision=nil, @scale=nil, @type=:datetime, @default=nil, @primary=false, @coder=nil>, "last_sign_in_at"=>#<ActiveRecord::ConnectionAdapters::SQLiteColumn:0xa0ca670 @name="last_sign_in_at", @sql_type="datetime", @null=true, @limit=nil, @precision=nil, @scale=nil, @type=:datetime, @default=nil, @primary=false, @coder=nil>, "current_sign_in_ip"=>#<ActiveRecord::ConnectionAdapters::SQLiteColumn:0xa0ca648 @name="current_sign_in_ip", @sql_type="varchar(255)", @null=true, @limit=255, @precision=nil, @scale=nil, @type=:string, @default=nil, @primary=false, @coder=nil>, "last_sign_in_ip"=>#<ActiveRecord::ConnectionAdapters::SQLiteColumn:0xa0ca620 @name="last_sign_in_ip", @sql_type="varchar(255)", @null=true, @limit=255, @precision=nil, @scale=nil, @type=:string, @default=nil, @primary=false, @coder=nil>, "created_at"=>#<ActiveRecord::ConnectionAdapters::SQLiteColumn:0xa0ca5f8 @name="created_at", @sql_type="datetime", @null=false, @limit=nil, @precision=nil, @scale=nil, @type=:datetime, @default=nil, @primary=false, @coder=nil>, "updated_at"=>#<ActiveRecord::ConnectionAdapters::SQLiteColumn:0xa0ca5d0 @name="updated_at", @sql_type="datetime", @null=false, @limit=nil, @precision=nil, @scale=nil, @type=:datetime, @default=nil, @primary=false, @coder=nil>}, "locking_column"=>"lock_version", "inheritance_column"=>nil, "attribute_methods_generated"=>true, "column_names"=>["id", "email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "sign_in_count", "current_sign_in_at", "last_sign_in_at", "current_sign_in_ip", "last_sign_in_ip", "created_at", "updated_at"], "cached_attributes"=>#<Set: {"reset_password_sent_at", "remember_created_at", "current_sign_in_at", "last_sign_in_at", "created_at", "updated_at"}>, "attribute_method_matchers_cache"=>{"_run__320443233__find__388903728__callbacks"=>#<struct ActiveModel::AttributeMethods::ClassMethods::AttributeMethodMatcher::AttributeMethodMatch target="_attribute", attr_name="run__320443233__find__388903728__callbacks", method_name="_run__320443233__find__388903728__callbacks">, "_run__320443233__initialize__388903728__callbacks"=>#<struct ActiveModel::AttributeMethods::ClassMethods::AttributeMethodMatcher::AttributeMethodMatch target="_attribute", attr_name="run__320443233__initialize__388903728__callbacks", method_name="_run__320443233__initialize__388903728__callbacks">}, "generated_external_attribute_methods"=>#<Module:0xa56c980>}