1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/lib/active_record
Godfrey Chan b242b2dbe7 Enum mappings are now exposed via class methods instead of constants.
Example:

    class Conversation < ActiveRecord::Base
      enum status: [ :active, :archived ]
    end

Before:

    Conversation::STATUS # => { "active" => 0, "archived" => 1 }

After:

    Conversation.statuses # => { "active" => 0, "archived" => 1 }
2014-01-14 04:00:34 -08:00
..
associations Change all "can not"s to the correct "cannot". 2014-01-03 17:02:31 -05:00
attribute_methods Fix typo: data --> date 2013-12-19 16:13:18 +10:00
coders
connection_adapters Merge pull request #13582 from schneems/schneems/preserve-connection-behavior 2014-01-09 14:37:51 -08:00
fixture_set Introduce a context for rendering fixtures ERB. 2013-12-03 02:52:26 -05:00
locale
locking pass the pk to compile_update 2013-11-16 14:20:22 -08:00
migration make change_column_null reversible. Closes #13576. 2014-01-08 15:51:06 +01:00
railties Ensure Active Record connection consistency 2014-01-09 16:35:37 -06:00
relation unscope should remove bind values associated with the where 2014-01-13 16:15:20 -08:00
scoping Don't need to check if the scope respond to call 2013-08-31 14:53:28 -03:00
serializers
tasks create/drop test and development databases only if RAILS_ENV is nil 2014-01-08 14:37:07 +01:00
validations Use Array#wrap instead Array() 2013-12-31 11:51:33 -06:00
aggregations.rb Remove conditional adding a new method 2013-09-11 21:24:59 -03:00
association_relation.rb
associations.rb Change all "can not"s to the correct "cannot". 2014-01-03 17:02:31 -05:00
attribute_assignment.rb assign_attributes should return if argument is blank. 2013-09-24 13:22:59 -05:00
attribute_methods.rb fix typos and grammar mistake [ci skip] 2013-12-19 12:02:01 +05:30
autosave_association.rb Save association when primary key is manually set 2013-10-24 22:30:30 -02:00
base.rb Remove deprecated cattr_* requires 2013-12-03 00:28:15 +02:00
callbacks.rb Fix ActiveRecord::Callbacks sample code [ci skip] 2013-12-03 23:27:23 +09:00
connection_handling.rb Ensure Active Record connection consistency 2014-01-09 16:35:37 -06:00
core.rb Ensure Active Record connection consistency 2014-01-09 16:35:37 -06:00
counter_cache.rb Spelling and Grammar checks 2013-12-12 18:28:34 +05:30
dynamic_matchers.rb Prevent invalid code when using dynamic finders with Ruby's reserved words. 2013-12-11 01:00:32 -02:00
enum.rb Enum mappings are now exposed via class methods instead of constants. 2014-01-14 04:00:34 -08:00
errors.rb Tell how to Create a Database in Error Message 2013-12-23 10:23:48 -05:00
explain.rb
explain_registry.rb
explain_subscriber.rb
fixtures.rb Revert "ask the fixture set for the sql statements" 2014-01-09 14:17:04 -08:00
inheritance.rb Set NameError#name 2014-01-13 12:47:14 -08:00
integration.rb Fix to_param when attribute has multibyte character 2013-12-19 05:29:16 +09:00
log_subscriber.rb type casted PG bytea values are represented as a Hash. 2013-11-09 20:55:01 +01:00
migration.rb activerecord: Initialize Migration with version from MigrationProxy. 2014-01-06 10:46:35 -05:00
model_schema.rb added schema_migrations_table_name to ActiveRecord::Base in order that the name of the schema migrations table can be configured. 2013-10-27 08:50:35 -05:00
nested_attributes.rb Renamed generated_feature_methods to generated_association_methods. 2013-09-28 12:26:23 +09:00
no_touching.rb add #no_touching on ActiveRecord models 2013-11-13 08:42:38 +01:00
null_relation.rb Mark the arguments needed by activerecord-deprecated_finders with a TODO 2013-12-11 13:35:34 -02:00
persistence.rb fix bug in becomes! when changing from base to subclass. Closes #13272. 2014-01-13 15:07:14 +01:00
query_cache.rb
querying.rb Delegate #rewhere to all on the class like all other relation methods 2013-11-02 19:45:03 -07:00
railtie.rb Ensure Active Record connection consistency 2014-01-09 16:35:37 -06:00
readonly_attributes.rb
reflection.rb scope_chain should not be mutated for other reflections 2013-10-14 11:59:59 -04:00
relation.rb Fix ActiveRecord::Relation#unscope 2013-11-20 22:23:16 +00:00
result.rb Also dup column_types in AR::Result initialize_copy 2013-11-10 00:25:57 +05:30
runtime_registry.rb Stop using method missing for singleton delegation. 2013-11-06 16:32:47 -08:00
sanitization.rb Tidy up fix for PG extensions quoting 2013-12-23 16:28:35 -02:00
schema.rb
schema_dumper.rb Push default_function to superclass to avoid method check 2013-10-14 01:46:41 -03:00
schema_migration.rb added schema_migrations_table_name to ActiveRecord::Base in order that the name of the schema migrations table can be configured. 2013-10-27 08:50:35 -05:00
scoping.rb
serialization.rb
statement_cache.rb
store.rb Fix: ActiveRecord::Store TypeError conversion when using YAML coder 2014-01-06 11:36:19 -02:00
timestamp.rb Refactor logic to grab the max time of the list of timestamp names in #cache_key 2013-11-04 13:14:07 -02:00
transactions.rb Fixed typo with after_commit docs 2013-10-25 16:59:48 -04:00
translation.rb
validations.rb
version.rb Get ready to release 4.1.0.beta1 2013-12-17 16:05:28 -08:00