app/models/blocks/base_block.rb
# Override this in your block to define which attributes should be indexed for search
Override this in your block to define which attributes should be indexed for search
Override this in your block to define which attributes should be indexed for search
def indexed_attributes
    self.class.columns.select { |c| %i(text string).include?(c.type) }
           .collect(&:name)
           .reject { |c| c =~ /_url$/ } - non_indexed_attributes
  end
def indexed_attributes self . class . columns . select { | c | %i( text string ) . include? ( c . type ) } . collect ( & :name ) . reject { | c | c =~ / _url$ / } - non_indexed_attributes end
Override this in your block to define which attributes should be indexed for search
Override this in your block to define which attributes should be indexed for search