module Nifty::Utils::ActiveRecord::RandomString::ClassMethods
Public Instance Methods
has_random_strings?()
click to toggle source
# File lib/nifty/utils/active_record/random_string.rb, line 26 def has_random_strings? false end
random_string(field, options = {})
click to toggle source
# File lib/nifty/utils/active_record/random_string.rb, line 30 def random_string(field, options = {}) self.send :include, ModelExtensions unless self.has_random_strings? self.random_string_fields[field] = options end