10
11
12
13
14
15
16
17
18
|
# File 'lib/active_record/connection_adapters/elasticsearch/unsupported_implementation.rb', line 10
def define_unsupported_method(*method_names)
method_names.each do |method_name|
module_eval " def \#{method_name}(*args)\n raise NotImplementedError, \"'#\#{method_name}' is originally defined by 'ActiveRecord::ConnectionAdapters' but is not supported by Elasticsearch. Choose a different solution to prevent the execution of this method!\"\n end\n RUBY\n end\nend\n", __FILE__, __LINE__ + 1
|