Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Compile length validator options still at the class level, so whenever the ↵ | José Valim | 2010-01-08 | 4 | -48/+26 |
| | | | | validator is called, it just needs to check for :maximum, :minimum and :is values. | ||||
* | Fixed that much of DateHelper wouldn't return html_safe? strings [DHH] | David Heinemeier Hansson | 2010-01-08 | 3 | -5/+29 |
| | |||||
* | Fixed that fragment caching should return a cache hit as html_safe (or it ↵ | David Heinemeier Hansson | 2010-01-07 | 2 | -1/+3 |
| | | | | would all just get escaped) [DHH] | ||||
* | Return-Path per RFC needs '<' and '>' around the addr_spec | Mikel Lindsaar | 2010-01-08 | 1 | -1/+6 |
| | |||||
* | Liberalize picky test | Jeremy Kemper | 2010-01-07 | 1 | -1/+1 |
| | |||||
* | Merge remote branch 'mikel/master' | Jeremy Kemper | 2010-01-07 | 1 | -1/+1 |
|\ | |||||
| * | Merge branch 'master' of github.com:mikel/rails | Mikel Lindsaar | 2010-01-08 | 0 | -0/+0 |
| |\ | | | | | | | | | | | | | | | | Conflicts: actionmailer/actionmailer.gemspec actionmailer/lib/action_mailer/vendor/text-format-0.6.3/text/format.rb | ||||
| | * | Merge branch 'master' of github.com:mikel/rails | Mikel Lindsaar | 2010-01-03 | 0 | -0/+0 |
| | |\ | |||||
| | | * | Silence warning of missing init on @config | Mikel Lindsaar | 2010-01-01 | 1 | -0/+1 |
| | | | | |||||
| | | * | Silence @text not initialized warning | Mikel Lindsaar | 2010-01-01 | 1 | -1466/+1467 |
| | | | | |||||
| | * | | Updating to Mail 1.5.0, including default values for all Message#field_name ↵ | Mikel Lindsaar | 2010-01-03 | 7 | -63/+64 |
| | | | | | | | | | | | | | | | | methods, can access field objects by calling Message#[:field_name] | ||||
| | * | | Silence warning of missing init on @config | Mikel Lindsaar | 2010-01-03 | 1 | -0/+1 |
| | | | | |||||
| | * | | Silence @text not initialized warning | Mikel Lindsaar | 2010-01-03 | 1 | -1466/+1467 |
| | | | | |||||
| * | | | Updating mail require | Mikel Lindsaar | 2010-01-08 | 1 | -1/+1 |
| | | | | |||||
* | | | | Qualify constant lookup in BasicObject | Jeremy Kemper | 2010-01-07 | 1 | -1/+1 |
|/ / / | |||||
* | | | Revert "Remove connection method definition, since it's called just once." | Jeremy Kemper | 2010-01-07 | 1 | -1/+5 |
| | | | | | | | | | | | | | | | | | | Restore the connection method which was added so it can be overridden. This reverts commit e428c75d2b67c6a7bd5f5e7e1719cdece84d497f. | ||||
* | | | No more hacks to ensure generators are executed inside Rails.root. | José Valim | 2010-01-07 | 3 | -19/+2 |
| | | | |||||
* | | | Ensure application names are not singularized. | José Valim | 2010-01-07 | 2 | -3/+8 |
| | | | |||||
* | | | Run railtie and plugin initializers before app specific ones | Joshua Peek | 2010-01-07 | 4 | -130/+155 |
| | | | |||||
* | | | Ensure config/application.rb also uses app_const instead of app_name.classify. | José Valim | 2010-01-07 | 3 | -3/+8 |
| | | | |||||
* | | | Merge remote branch 'eloy/master' | José Valim | 2010-01-07 | 6 | -82/+140 |
|\ \ \ | |||||
| * | | | Raise a RecordNotFound if an ID in nested attributes is given but doesn't ↵ | Eloy Duran | 2010-01-07 | 2 | -4/+31 |
| | | | | | | | | | | | | | | | | return a record. [#2415 state:resolved] | ||||
| * | | | Moved the validation logic to the association reflection and refactored ↵ | Eloy Duran | 2010-01-07 | 4 | -33/+70 |
| | | | | | | | | | | | | | | | | autosave_association.rb a bit. | ||||
| * | | | Remove deprecated '_delete' option from NestedAttributes. | Eloy Duran | 2010-01-07 | 2 | -19/+2 |
| | | | | |||||
| * | | | Removed unnecessary call to #try and cleaned up a bit more. | Eloy Duran | 2010-01-07 | 1 | -6/+4 |
| | | | | |||||
| * | | | Don't use strings for callbacks, as these will be evaled. Rather use ↵ | Eloy Duran | 2010-01-07 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | symbols, which uses a direct method dispatch. Patch by Comron Sattari. [#3429 state:resolved] | ||||
| * | | | Cleanup some code in nested_attributes.rb, autosave_association.rb, and ↵ | Eloy Duran | 2010-01-07 | 4 | -14/+9 |
| | | | | | | | | | | | | | | | | | | | | | | | | associations.rb with AssociationReflection#collection_association? Also cache the result value. | ||||
| * | | | Add AssociationReflection#collection_association? which returns true if it's ↵ | Eloy Duran | 2010-01-07 | 2 | -1/+17 |
| | | | | | | | | | | | | | | | | for a has_many or has_and_belongs_to_many association. | ||||
| * | | | Refactored nested attributes a bit around :reject_if => :all_blank. | Eloy Duran | 2010-01-07 | 2 | -6/+8 |
| | | | | |||||
* | | | | Allow :if, :unless, :on, :allow_nil and :allow_blank as shared options in ↵ | José Valim | 2010-01-07 | 4 | -12/+61 |
| | | | | | | | | | | | | | | | | validates. | ||||
* | | | | Add validates method as shortcut to setup validators for a given set of ↵ | jamie | 2010-01-07 | 17 | -98/+328 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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> | ||||
* | | | | Remove stray semicolon from cookie_verification_secret initialzer template | Jeffrey Hardy | 2010-01-07 | 1 | -1/+1 |
| | | | | |||||
* | | | | Align assignments in the session_store initializer template | Jeffrey Hardy | 2010-01-07 | 1 | -2/+2 |
| | | | | |||||
* | | | | Ensure that segments in default_url_options also work with format specified. | José Valim | 2010-01-07 | 2 | -2/+10 |
| | | | | |||||
* | | | | From now on, parameters defined in default_url_options can be absent from ↵ | José Valim | 2010-01-07 | 4 | -65/+93 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | named routes. This allows the following setup to work: # app/controllers/application_controller.rb class ApplicationController def default_url_options(options=nil) { :locale => I18n.locale } end end # From your views and controllers: I18n.locale #=> :en users_url #=> "/en/users" users_url(:pl) #=> "/pl/users" user_url(1) #=> "/en/users/1" user_url(:pl, 1) #=> "/pl/users/1" user_url(1, :locale => :pl) #=> "/pl/users/1" If you provide all expected parameters, it still works as previously. But if any parameter is missing, it tries to assign all possible ones with the hash returned in default_url_options or the one passed straight to the named route method. Beware that default_url_options in ApplicationController is not shared with ActionMailer, so you are required to always give the locale in your email views. | ||||
* | | | | Remove duplicated url_for code and move methods shared between ActionMailer ↵ | José Valim | 2010-01-07 | 11 | -479/+489 |
| | | | | | | | | | | | | | | | | and ActionController up to AbstractController. | ||||
* | | | | Updated the documentation for helpers.label. | José Valim | 2010-01-07 | 1 | -3/+3 |
| | | | | |||||
* | | | | Allow to specify default attributes names translation in I18n yml files. | José Valim | 2010-01-07 | 3 | -2/+13 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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). | ||||
* | | | | Be sure to dup load paths before clearing the array. | José Valim | 2010-01-07 | 2 | -2/+2 |
| | | | | |||||
* | | | | Use helpers.label instead of views.labels. | José Valim | 2010-01-07 | 5 | -8/+8 |
| | | | | |||||
* | | | | errors in ActionView should not be namespaced as well. | José Valim | 2010-01-07 | 3 | -15/+14 |
| | | | | |||||
* | | | | Add a deprecation message to activerecord.errors. | José Valim | 2010-01-07 | 1 | -0/+11 |
| | | | | |||||
* | | | | Errors messages are now moved from :activerecord.errors to simply :errors on ↵ | José Valim | 2010-01-07 | 10 | -228/+108 |
|/ / / | | | | | | | | | | I18n yml files. | ||||
* | | | Remove unneeded reliance on super -> method_missing quirk | Jeremy Kemper | 2010-01-07 | 2 | -2/+29 |
| | | | |||||
* | | | Remove unneeded reliance on Numeric#round quirk | Jeremy Kemper | 2010-01-06 | 1 | -2/+3 |
| | | | |||||
* | | | instrumenter should be accessible from ActiveSupport::Notifications. | José Valim | 2010-01-06 | 2 | -15/+16 |
| | | | |||||
* | | | Ensure before_validation and after_validation accepts :on as option. | José Valim | 2010-01-06 | 2 | -3/+64 |
| | | | |||||
* | | | Fix failing app generator test when using the --dev option | Jeffrey Hardy | 2010-01-06 | 1 | -1/+1 |
| | | | |||||
* | | | Restore require of 'active_record/fixtures' for Rake tasks that use them | Jeffrey Hardy | 2010-01-06 | 1 | -0/+4 |
| | | | |||||
* | | | Use better defaults for fixtures: transactional=true, instantiated=false | Jeffrey Hardy | 2010-01-06 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | These reflect the settings that were previously included in the default test_helper.rb, removed in d7d9173. |