aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* | Partial Documentation for ActiveModel::StateMachineNestor Ovroy2010-01-181-0/+109
| |
* | Updating ActiveModel::Errors documentation to plug Translations and ↵Mikel Lindsaar2010-01-171-1/+4
| | | | | | | | Validations modules
* | Adding documentation for ActiveModel::SerializationMikel Lindsaar2010-01-172-2/+60
| |
* | Fixing documentation for ActiveModel::ObserverMikel Lindsaar2010-01-171-8/+13
| |
* | Adding ActiveModel::Naming documentationMikel Lindsaar2010-01-171-0/+17
| |
* | Update errors docsMikel Lindsaar2010-01-171-5/+4
| |
* | Added documentation for ActiveModel::LintMikel Lindsaar2010-01-171-9/+5
| |
* | Added ActiveModel::Errors documentationMikel Lindsaar2010-01-171-0/+107
| |
* | Merge branch 'master' of github.com:lifo/docrailsMikel Lindsaar2010-01-1718-181/+328
|\ \
| * | Merge remote branch 'mainstream/master'Pratik Naik2010-01-1718-181/+328
| |\| | | | | | | | | | | | | Conflicts: actionpack/lib/action_controller/metal/flash.rb
| | * Fix typos and add tests to ensure they will be caught the next time.José Valim2010-01-112-3/+3
| | |
| | * Fix typo by renaming :genre to :gender.José Valim2010-01-091-1/+1
| | |
| | * Allow validates to map some types to specific options. So now you can do:José Valim2010-01-082-15/+36
| | | | | | | | | | | | | | | | | | validates :email, :presence => true, :format => /@/ validates :genre, :inclusion => %w(m f) validates :password, :length => 6..20
| | * Compile length validator options still at the class level, so whenever the ↵José Valim2010-01-083-44/+24
| | | | | | | | | | | | validator is called, it just needs to check for :maximum, :minimum and :is values.
| | * Allow :if, :unless, :on, :allow_nil and :allow_blank as shared options in ↵José Valim2010-01-072-9/+19
| | | | | | | | | | | | validates.
| | * Add validates method as shortcut to setup validators for a given set of ↵jamie2010-01-0712-96/+236
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | attributes: class Person < ActiveRecord::Base include MyValidators validates :name, :presence => true, :uniqueness => true, :length => { :maximum => 100 } validates :email, :presence => true, :email => true end [#3058 status:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
| | * Allow to specify default attributes names translation in I18n yml files.José Valim2010-01-071-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For example, you could easily specify :created_at and :updated_at translations as: en: attributes: created_at: "Created at" updated_at: "Updated at" This configuration is built on ActiveModel, so it means those translations are shared between different ORMs as well (but always as a fallback).
| | * Errors messages are now moved from :activerecord.errors to simply :errors on ↵José Valim2010-01-072-28/+26
| | | | | | | | | | | | I18n yml files.
| | * Autoload AMo test caseJoshua Peek2010-01-041-3/+4
| | |
| | * Autoload AS test caseJoshua Peek2010-01-041-2/+0
| | |
| | * MergeDavid Heinemeier Hansson2010-01-034-6/+25
| | |\
| | * | Change the ActiveModel::Base.include_root_in_json default to true for Rails ↵David Heinemeier Hansson2010-01-031-5/+3
| | | | | | | | | | | | | | | | 3 [DHH]
* | | | Adding ActiveModel::AttributeMethods documentationMikel Lindsaar2010-01-171-21/+120
|/ / /
* | | Adding RDoc for active_model dirtyMikel Lindsaar2010-01-161-1/+39
| | |
* | | ActiveModel::Conversion documentationMikel Lindsaar2010-01-151-1/+12
| | |
* | | ActiveModel::Callbacks documentationMikel Lindsaar2010-01-151-31/+73
| | |
* | | Merge remote branch 'mainstream/master'Pratik Naik2010-01-0420-306/+456
|\ \ \ | | |/ | |/|
| * | Add missing tests to Validators.José Valim2010-01-031-1/+2
| | |
| * | Add naming to AMo::LintJosé Valim2010-01-021-0/+14
| | |
| * | Use activerecord.errors.format as in Rails 2.3.5.José Valim2010-01-022-3/+6
| | |
| * | Be sure to convert namespaced names to we have 'Parrots name' instead of ↵José Valim2010-01-021-2/+3
| |/ | | | | | | 'Parrots.name' in error messages.
| * Ruby 1.9.2: explicit coercion check no longer needed; bug fixed upstreamJeremy Kemper2010-01-011-4/+0
| |
| * Some railties cleanup:Carl Lerche2009-12-311-0/+0
| | | | | | | | | | | | * Rename <framework>/rails.rb -> <framework>/railtie.rb * Rails::Plugin -> Rails::Railtie * Rails::Plugin::Vendored -> Rails::Plugin
| * Rename rails.rb -> rails/all.rb and rails/core.rb -> rails.rbCarl Lerche2009-12-311-1/+2
| |
| * Add a /rails.rb for each framework for consistencyCarl Lerche2009-12-311-0/+1
| |
| * Move ActiveRecord callbacks implementation to ActiveModel and make use of it.José Valim2009-12-282-0/+92
| | | | | | | | Signed-off-by: Yehuda Katz <wycats@Yehuda-Katz.local>
| * Merge commit 'josevalim/validations'Jeremy Kemper2009-12-2815-284/+315
| |\
| | * No need to use ValidationsRepairHelper hack on ActiveModel anymore, ↵José Valim2009-12-232-36/+0
| | | | | | | | | | | | Model.reset_callbacks(:validate) is enough. However, tests in ActiveRecord are still coupled, so moved ValidationsRepairHelper back there.
| | * Small clean up in Naming and TTranslation tests.José Valim2009-12-232-25/+23
| | |
| | * ActiveRecord::Validations are now built on top of Validator as well.José Valim2009-12-233-6/+11
| | |
| | * validates_each uses a BlockValidator.José Valim2009-12-235-41/+49
| | |
| | * Added check_validity! to EachValidator and refactor existing ones.José Valim2009-12-235-74/+90
| | |
| | * Move validations in ActiveModel to validators, however all validatity checks ↵José Valim2009-12-2311-155/+198
| | | | | | | | | | | | are still in the class method.
| | * Validator is simply sent to validate method. However, the API needs to ↵José Valim2009-12-222-9/+6
| | | | | | | | | | | | change, so validate accepts a record.
| * | Use i18nJeremy Kemper2009-12-271-0/+1
| | |
| * | All AMo modules are safe to deferJoshua Peek2009-12-222-23/+20
| | |
| * | Flip deferrable autoload conventionJoshua Peek2009-12-221-19/+23
| |/
| * Fully expand relative rails framework paths and make sure we aren'tJoshua Peek2009-12-161-2/+3
| | | | | | | | adding any to the load path more than once.
| * Ruby 1.9.2: explicitly raise NoMethodError for explicit coercion attemptsJeremy Kemper2009-12-061-0/+4
| |
| * Reorganize autoloads:Carlhuda2009-12-021-20/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * A new module (ActiveSupport::Autoload) is provide that extends autoloading with new behavior. * All autoloads in modules that have extended ActiveSupport::Autoload will be eagerly required in threadsafe environments * Autoloads can optionally leave off the path if the path is the same as full_constant_name.underscore * It is possible to specify that a group of autoloads live under an additional path. For instance, all of ActionDispatch's middlewares are ActionDispatch::MiddlewareName, but they live under "action_dispatch/middlewares/middleware_name" * It is possible to specify that a group of autoloads are all found at the same path. For instance, a number of exceptions might all be declared there. * One consequence of this is that testing-related constants are not autoloaded. To get the testing helpers for a given component, require "component_name/test_case". For instance, "action_controller/test_case". * test_help.rb, which is automatically required by a Rails application's test helper, requires the test_case.rb for all active components, so this change will not be disruptive in existing or new applications.