Created
November 20, 2010 19:01
-
-
Save zeroeth/708053 to your computer and use it in GitHub Desktop.
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
def service_level_values | |
ServiceLevel.all.collect do |s| | |
[service_level_label(s), s.id] | |
end | |
end | |
def service_level_label(service_level) | |
"#{service_level.name.capitalize} Service (#{format_price_for_select service_level.price}) - Up to #{pluralize service_level.delay, 'business day'} before despatch" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment