aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | | Merge branch 'master' of git://github.com/lifo/docrailsXavier Noria2011-06-181-1/+1
|\ \ \ \ \ \ | |/ / / / / |/| | | | |
| * | | | | with -> willUģis Ozols2011-06-121-1/+1
| |/ / / /
* | | | | safe_concat should not work on dirty buffers.José Valim2011-06-161-4/+13
| | | | |
* | | | | Fix safe buffer by adding a dirty status.José Valim2011-06-161-12/+24
| |/ / / |/| | |
* | | | Rename Time#whole_* to Time#all_* [thanks Pratik!]David Heinemeier Hansson2011-06-131-5/+5
| | | |
* | | | Added Time#whole_day/week/quarter/year as a way of generating ranges ↵David Heinemeier Hansson2011-06-131-1/+26
| | | | | | | | | | | | | | | | (example: Event.where(created_at: Time.now.whole_week)) [DHH]
* | | | Added instance_accessor: false as an option to Class#cattr_accessor and ↵David Heinemeier Hansson2011-06-131-2/+3
| | | | | | | | | | | | | | | | friends [DHH]
* | | | Define ActiveSupport#to_param as to_str - closes #1663Andrew White2011-06-121-0/+4
|/ / /
* | | Merge branch 'master' of git://github.com/lifo/docrailsXavier Noria2011-06-111-1/+1
|\ \ \
| * | | Fixed minor typo: 'Arraw' to 'Array'thoefer2011-06-111-1/+1
| | | |
* | | | ensuring that json_escape returns html safe strings when passed an html safe ↵Aaron Patterson2011-06-091-1/+2
| | | | | | | | | | | | | | | | string
* | | | Merge pull request #1579 from bradleybuda/masterJosé Valim2011-06-081-4/+6
|\ \ \ \ | | | | | | | | | | Date#freeze fails when called more than once in 1.8
| * | | | Allow a Date to be frozen more than once without an error in Ruby 1.8.xBradley Buda2011-06-081-4/+6
| | | | |
* | | | | Simplify boolean logic into ternary.Ben Orenstein2011-06-081-1/+1
|/ / / /
* | | | Prefer 'each' over 'for in' syntax.Sebastian Martinez2011-06-071-1/+1
| | | |
* | | | Ensure that the strings returned by SafeBuffer#gsub and friends aren't ↵Michael Koziarski2011-06-071-0/+13
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | considered html_safe? Also make sure that the versions of those methods which modify a string in place such as gsub! can't be called on safe buffers at all. Conflicts: activesupport/test/safe_buffer_test.rb
* | | Merge branch 'master' of git://github.com/lifo/docrailsXavier Noria2011-06-061-1/+1
|\ \ \ | |/ / |/| | | | | | | | Conflicts: activerecord/RUNNING_UNIT_TESTS
| * | Remove trailing white-spacesGuillermo Iguaran2011-06-051-1/+1
| | |
* | | avoid creating range objectsAaron Patterson2011-05-291-1/+1
| | |
* | | Removed deprecated methods and related tests from ActiveSupportJosh Kalderimis2011-05-254-211/+0
|/ /
* | Merge branch 'master' of git://github.com/lifo/docrailsXavier Noria2011-05-255-6/+6
|\ \ | |/ |/| | | | | | | Conflicts: actionmailer/lib/action_mailer/base.rb activesupport/lib/active_support/core_ext/kernel/requires.rb
| * Remove extra white spaces on ActiveSupport docs.Sebastian Martinez2011-05-236-7/+7
| |
* | Removed the AS core_ext/kernel/debugger breakpoint method as this method is ↵Josh Kalderimis2011-05-231-7/+1
| | | | | | | | added by ruby-debug and should be left as is. Missing tests added.
* | Removed AS core_ext/kernel/requires as it's not used and is bad practice.Josh Kalderimis2011-05-232-27/+0
| |
* | don't raise NoMethodError the tried method doesn't existsdmathieu2011-05-211-0/+2
|/
* Merge branch 'master' of git://github.com/lifo/docrailsXavier Noria2011-05-181-0/+2
|\
| * Prevent duplicable comments from being the opening paragraph for Object docsEvan Farrar2011-05-181-0/+2
| |
* | add some missing requires for AS core_ext/numeric/time. Closes #1038Josh Kalderimis2011-05-182-0/+3
| |
* | Don't print deprecation warnings every time the user reads or writes an ↵Michael Koziarski2011-05-171-2/+0
| | | | | | | | inheritable attribute. The warnings on declaration is enough.
* | Deprecate attr_accessor_with_default.José Valim2011-05-161-0/+1
|/
* Merge branch 'master' of git://github.com/lifo/docrailsXavier Noria2011-05-1411-31/+35
|\ | | | | | | | | | | Conflicts: actionpack/lib/action_view/helpers/date_helper.rb railties/lib/rails/generators/rails/app/templates/config/initializers/wrap_parameters.rb.tt
| * Follow code conventions on docsSebastian Martinez2011-05-101-1/+1
| |
| * included examples for negative ordinalizeVijay Dev2011-05-081-4/+7
| |
| * replaced eg using old router api with the one in the guides. Add info on ↵Vijay Dev2011-05-071-5/+8
| | | | | | | | nesting with_options
| * minor fixesVijay Dev2011-05-073-4/+3
| |
| * fixes incorrect error message for sample methodVijay Dev2011-05-071-1/+1
| |
| * use new AR calls in examplesVijay Dev2011-05-071-2/+2
| |
| * fix comment alignmentVijay Dev2011-05-071-3/+2
| |
| * revises comment for blank? methodVijay Dev2011-05-071-3/+3
| |
| * Revert "Small edit to the if statement simplification for blank? on the ↵Xavier Noria2011-05-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Object class. An Object doesn't need to be nil and empty to be blank? just one or the other." Reason: the original code is correct, see !nil && !empty -> !(nil || empty) -> !blank That said, this example has too many negations for my linking. Think should be revised to be more positive and straightforward to read. This reverts commit a4b6e3d9be338e93320606f7cb14759b26ced8df.
| * Small edit to the if statement simplification for blank? on the Object ↵Caley Woods2011-05-061-1/+1
| | | | | | | | class. An Object doesn't need to be nil and empty to be blank? just one or the other.
| * Fix punctuation errors.Sebastian Martinez2011-05-041-8/+8
| |
* | new reporting method Kernel#quietlyXavier Noria2011-05-131-1/+13
| |
* | Remove a circular require in AS deprecations. This is safe as AS ↵Josh Kalderimis2011-05-121-2/+0
| | | | | | | | deprecations is autoloaded as needed.
* | Merge pull request #227 from farski/masterSantiago Pastorino2011-05-112-6/+6
|\ \ | | | | | | Unnecessary redundancy in Time/Date calculations
| * | Removed some redundant Time#change time options from beginning_of_ methods ↵Chris Kalafarski2011-03-132-6/+6
| | | | | | | | | | | | in Date and Time
* | | Merge pull request #388 from smartinez87/remove_methodJosé Valim2011-05-081-2/+3
|\ \ \ | | | | | | | | Better use #remove_possible_method here
| * | | Better use #remove_possible_method hereSebastian Martinez2011-05-081-2/+3
| | |/ | |/|
* | | indifferent access should recurse Hash subclassesDavid Lee2011-05-081-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit makes Hash subclasses convert to HWIA by default for nested objects of subclasses of Hash, but allows certain subclasses to prevent nested conversion by introducing Hash#nested_under_indifferent_access that subclasses can overwrite. ActiveSupport::OrderedHash is one such subclass that overwrites +nested_under_indifferent_access+, since implicitly converting it to HWIA would remove the ordering of keys and values in Ruby 1.8. This change is necessary because commit ce9456e broke nested indifferent access conversion for all subclasses of Hash.
* | | Revert "Merge pull request #275 from pk-amooma/master"José Valim2011-05-071-2/+2
| | | | | | | | | | | | | | | | | | | | | Several AP tests fail after this change. This reverts commit aaf01cd53718c8aa5b69ac056b997e6dd9893777, reversing changes made to 9cc18c52faeebaad6a76bd62cdca1c6b9f96afed.