Created
December 6, 2012 02:15
-
-
Save lonelydimple/4221307 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 initialize_mismitched_activities | |
| if attribute_present?(:mismatched_activities=) | |
| self.mismatched_activities ||= Set.new | |
| end | |
| end | |
| def merchants_underwriting_class_list=(list) | |
| self.merchants_underwriting_class_numbers = list.to_s.split(/[^\d]+/).map{ |i| i.to_i }.sort.uniq | |
| end | |
| def merchants_underwriting_class_list | |
| self.merchants_underwriting_class_numbers.uniq.sort.map{ |c| c.to_s }.join(", ") | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment