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
Piotr Sarnacki 6951014c05 Fix table_name in ActiveRecord with more than one abstract ancestors
When subclassing abstract_class table_name should be always computed
based on class name, no matter if superclass is subclassing base
or another abstract_class. So:

class FirstAbstract < ActiveRecord::Base
  self.abstract_class = true
end
class SecondAbstract < FirstAbstract
  self.abstract_class = true
end

class Post < SecondAbstract
  self.table_name #=> 'posts' (not 'second_abstracts')
end
2012-01-12 20:39:12 +01:00
..
associations Remove Array.wrap calls in ActiveRecord 2012-01-06 01:04:33 -03:00
attribute_methods Expanded rdoc about primary keys being protected from mass assignment. 2012-01-06 11:53:01 +01:00
coders
connection_adapters on and ON are type casted to a true boolean column 2012-01-11 23:20:13 -02:00
fixtures No need to require psych since require yaml does that. 2012-01-04 14:29:13 -03:00
locale
locking Support configuration on ActiveRecord::Model. 2011-12-28 18:27:41 +00:00
migration Fix GH #4285. Remove options when we record calling creat_table 2012-01-04 10:25:15 +09:00
railties fixes in api docs 2012-01-13 00:41:12 +05:30
relation Merge branch 'master' of github.com:lifo/docrails 2012-01-11 20:18:55 +05:30
scoping app code in general wants Time.current, not Time.now 2011-12-28 23:47:10 +01:00
serializers Remove Array.wrap calls in ActiveRecord 2012-01-06 01:04:33 -03:00
validations allow association as 1st uniqueness validation arg 2012-01-06 19:17:36 -05:00
aggregations.rb minor fixes in the composed_of doc 2011-10-22 23:53:52 +05:30
associations.rb removed unnecessary require for activesupport/core_ext/array/wrap 2012-01-07 00:30:01 +05:30
attribute_assignment.rb Split out most of the AR::Base code into separate modules 🍰 2011-12-15 20:45:37 +00:00
attribute_methods.rb Revert "Base#[] and Base#[]= are aliases so implement them as aliases :)" 2012-01-11 10:14:21 +00:00
autosave_association.rb Remove Array.wrap calls in ActiveRecord 2012-01-06 01:04:33 -03:00
base.rb deleted duplicated line 2012-01-05 11:33:13 -05:00
callbacks.rb Remove Array.wrap calls in ActiveRecord 2012-01-06 01:04:33 -03:00
connection_handling.rb Support establishing connection on ActiveRecord::Model. 2011-12-28 18:27:41 +00:00
core.rb AS::Callbacks: remove unused runner 2012-01-12 10:44:10 +02:00
counter_cache.rb Remove unnecessary comma. 2011-12-26 21:44:50 +02:00
dynamic_finder_match.rb
dynamic_matchers.rb Split out most of the AR::Base code into separate modules 🍰 2011-12-15 20:45:37 +00:00
dynamic_scope_match.rb
errors.rb Consider attempted action in exception message of ActiveRecord::StaleObjectError 2011-10-14 18:20:41 +02:00
explain.rb Support configuration on ActiveRecord::Model. 2011-12-28 18:27:41 +00:00
explain_subscriber.rb moves some auto explain logic to the subscriber [José Valim & Xavier Noria] 2011-12-04 13:53:26 -08:00
fixtures.rb Remove Array.wrap calls in ActiveRecord 2012-01-06 01:04:33 -03:00
identity_map.rb Fix build when IM=true 2011-12-22 23:21:38 +00:00
inheritance.rb Support establishing connection on ActiveRecord::Model. 2011-12-28 18:27:41 +00:00
integration.rb Split out most of the AR::Base code into separate modules 🍰 2011-12-15 20:45:37 +00:00
log_subscriber.rb implements a much faster auto EXPLAIN, closes #3843 [José Valim & Xavier Noria] 2011-12-04 11:52:12 -08:00
migration.rb move column ordering tests to it's own class 2012-01-10 14:02:21 -08:00
model.rb Delete some stray lines 2011-12-28 18:44:15 +00:00
model_schema.rb Fix table_name in ActiveRecord with more than one abstract ancestors 2012-01-12 20:39:12 +01:00
nested_attributes.rb Array.wrap is an overhead as there is already check for class 2012-01-06 17:02:17 +03:00
observer.rb Allow ActiveRecord observers to be disabled. 2011-08-12 20:48:44 -07:00
persistence.rb Clarify what persisted? returns. 2011-12-25 15:41:50 +02:00
query_cache.rb use thread locals and an instance variable within QueryCache#BodyProxy to maintain appropriate linkage with AR database connection across threads 2011-10-07 10:05:51 +01:00
querying.rb Split out most of the AR::Base code into separate modules 🍰 2011-12-15 20:45:37 +00:00
railtie.rb Moved all the logger methods to active support logger 2012-01-06 00:38:46 +05:30
readonly_attributes.rb Support configuration on ActiveRecord::Model. 2011-12-28 18:27:41 +00:00
reflection.rb no need for extra method calls inside the framework 2012-01-09 14:38:21 -08:00
relation.rb correctly handle order calls after a reorder 2012-01-03 14:52:36 -05:00
result.rb Remove extra white spaces on ActiveRecord docs. 2011-05-23 20:58:25 -03:00
sanitization.rb Split out most of the AR::Base code into separate modules 🍰 2011-12-15 20:45:37 +00:00
schema.rb
schema_dumper.rb just use the list of formatting keys we care about 2012-01-04 17:10:13 -08:00
scoping.rb Move DefaultScope and NamedScope under Scoping 2011-12-15 20:45:42 +00:00
serialization.rb Remove Array.wrap calls in ActiveRecord 2012-01-06 01:04:33 -03:00
session_store.rb test a subclass so that the removed method does not imact other tests 2012-01-05 17:05:43 -08:00
store.rb Fix that changing a store should mark the store attribute as changed 2011-10-25 17:22:52 -05:00
test_case.rb Revert "active record base class test case should not be public" 2012-01-05 12:44:05 -02:00
timestamp.rb Support configuration on ActiveRecord::Model. 2011-12-28 18:27:41 +00:00
transactions.rb Remove Array.wrap calls in ActiveRecord 2012-01-06 01:04:33 -03:00
translation.rb Split out most of the AR::Base code into separate modules 🍰 2011-12-15 20:45:37 +00:00
validations.rb Remove extra white spaces on ActiveRecord docs. 2011-05-23 20:58:25 -03:00
version.rb rails/master is now 4.0.0.beta and will only support Ruby 1.9.3+ 2011-12-20 09:30:37 -06:00