module FlightConfig::HasIndices
Public Class Methods
included(base)
click to toggle source
# File lib/flight_config/has_indices.rb, line 30 def self.included(base) base.extend(ClassMethods) end
Public Instance Methods
generate_indices()
click to toggle source
# File lib/flight_config/has_indices.rb, line 47 def generate_indices self.class.indices.each do |klass, block| instance_exec(klass.method(:create_or_update), &block) end end