Module: Rails::AddOns::Service::Base::Autosave

Extended by:
ActiveSupport::Concern
Included in:
Rails::AddOns::Service::Base
Defined in:
app/services/rails/add_ons/service/base.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#autosave!Object


133
134
135
136
# File 'app/services/rails/add_ons/service/base.rb', line 133

def autosave!
  @options[:autosave] = true
  self
end

#autosave?Boolean


129
130
131
# File 'app/services/rails/add_ons/service/base.rb', line 129

def autosave?
  !!@options[:autosave]
end