vendor/plugins/flag_shih_tzu/lib/flag_shih_tzu.rb
# returns an array of integers suitable for a SQL IN statement.
returns an array of integers suitable for a SQL IN statement.
returns an array of integers suitable for a SQL IN statement .
def sql_in_for_flag(flag, colmn)
        val = flag_mapping[colmn][flag]
        num = 2 ** flag_mapping[flag_options[colmn][:column]].length
        (1..num).select {|i| i & val == val}
      end
def sql_in_for_flag ( flag , colmn ) val = flag_mapping [ colmn ] [ flag ] num = 2 ** flag_mapping [ flag_options [ colmn ] [ :column ] ] . length ( 1 .. num ) . select { | i | i & val == val } end
returns an array of integers suitable for a SQL IN statement.
returns an array of integers suitable for a SQL IN statement .
flag
colmn