lib/volt/models/model.rb
# Get a new model, make it easy to override
Get a new model, make it easy to override
Get a new model make it easy to override
def read_new_model(method_name)
    if @persistor && @persistor.respond_to?(:read_new_model)
      @persistor.read_new_model(method_name)
    else
      return new_model(nil, @options.merge(parent: self, path: path + [method_name]))
    end
  end
def read_new_model ( method_name ) if @persistor && @persistor . respond_to? ( :read_new_model ) @persistor . read_new_model ( method_name ) else return new_model ( nil , @options . merge ( parent : self , path : path + [ method_name ] ) ) end end
Get a new model, make it easy to override
Get a new model make it easy to override
method_name