You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: datetime_field_presenter.rb
    path of file: ./repos/form_core/test/dummy/app/presenters/fields
    
    the code of the file until where you have to start completion: # frozen_string_litera
    
    def field_options
      return {} if access_readonly?

      options = {}
      current_time = Time.zone.now.change(sec: 0, usec: 0)

      if @model.options.begin_from_now?
        begin_minutes_offset = @model.options.begin_from_now_minutes_offset.minutes.to_i
        options[:min] = current_time + begin_minutes_offset
      elsif @model.options.begin_from_time?
        options[:min] = @model.options.begin
      elsif @model.options.begin_from_minutes_before_end?
        minutes_before_end = @model.options.minutes_before_end.minutes
        if @model.options.end_to_now?
          end_minutes_offset = @model.options.end_to_now_minutes_offset.minutes.to_i
          options[:min] = current_time + end_minutes_offset - minutes_before_end
        elsif @model.options.end_to_time?
          options[:min] = @model.options.end - minutes_before_end
        end