Found via google. I made a quick script for this. Sorry for reviving.. class TrueClass def to_s(style = :boolean) case style when :word then 'yes' when :Word then 'Yes' when :number then '1' else 'true' end end end
class FalseClass def to_s(style = :boolean) case style when :word then 'no' when :Word then 'No' when :number then '0' else 'false' end end end https://gist.github.com/pehrlich/4963672 -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.