Module: Pacecar::Helpers::ClassMethods

Defined in:
lib/pacecar/helpers.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) boolean_column_names



23
24
25
# File 'lib/pacecar/helpers.rb', line 23

def boolean_column_names
  column_names_for_type :boolean
end

- (Object) non_boolean_column_names



19
20
21
# File 'lib/pacecar/helpers.rb', line 19

def non_boolean_column_names
  column_names_without_type :boolean
end

- (Object) non_state_text_and_string_columns



31
32
33
# File 'lib/pacecar/helpers.rb', line 31

def non_state_text_and_string_columns
  text_and_string_column_names.reject { |name| name =~ Pacecar::Helpers.options[:state_pattern] }
end

- (Object) safe_column_names



15
16
17
# File 'lib/pacecar/helpers.rb', line 15

def safe_column_names
  safe_columns.collect(&:name)
end

- (Object) text_and_string_column_names



27
28
29
# File 'lib/pacecar/helpers.rb', line 27

def text_and_string_column_names
  column_names_for_type :text, :string
end