Sha256: e3fa2b417ec22cbca5d4a607b41a56fbc679ba4ee142d8a6981ae15ed752d60d
Contents?: true
Size: 675 Bytes
Versions: 5
Compression:
Stored size: 675 Bytes
Contents
module Koudoku module ApplicationHelper def plan_price(plan) "#{number_to_currency(plan.price)}/#{plan_interval(plan)}" end def plan_interval(plan) case plan.interval when "month" "month" when "year" "year" when "week" "week" when "6-month" "half-year" when "3-month" "quarter" else "month" end end # returns TRUE if the controller belongs to Koudoku # false in all other cases, for convenience when executing filters # in the main application def koudoku_controller? is_a? Koudoku::ApplicationController end end end
Version data entries
5 entries across 5 versions & 1 rubygems