This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| File: Reachability.h | |
| Abstract: Basic demonstration of how to use the SystemConfiguration Reachablity APIs. | |
| Version: 2.2 - ARCified | |
| Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple Inc. | |
| ("Apple") in consideration of your agreement to the following terms, and your | |
| use, installation, modification or redistribution of this Apple software |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| # Recurring Job using Delayed::Job | |
| # | |
| # Setup Your job the "plain-old" DJ (perform) way, include this module | |
| # and Your handler will re-schedule itself every time it succeeds. | |
| # | |
| # Sample : | |
| # | |
| # class MyJob | |
| # include Delayed::ScheduledJob |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # --- | |
| # Code gehört in app/helpers/application_helper.rb (oder einen anderen Helper…) | |
| # --- | |
| # Ausgabe: "Vor mehr als 5 Monaten"/"Vor etwa einem Jahr" — statt "Dauer: mehr als 5 Monate"/"Dauer: etwa 1 Jahr", wie es die Originalfunktion liefert | |
| # Original-File: actionpack/lib/action_view/helpers/date_helper.rb, line 63 | |
| # Dokumenation: http://apidock.com/rails/v2.3.8/ActionView/Helpers/DateHelper/distance_of_time_in_words | |
| # Changelog: I18n.with_options-Scope geändert auf "distance_in_words_gebeugt" | |
| def distance_of_time_in_words_gebeugt(from_time, to_time = 0, include_seconds = false, options = {}) | |
| from_time = from_time.to_time if from_time.respond_to?(:to_time) |
NewerOlder