Module: Six::Import::Controller::ClassMethods

Included in:
ApplicationController
Defined in:
lib/six-updater-web/vendor/plugins/six-import/lib/six/import.rb

Instance Method Summary collapse

Instance Method Details

#copyObject



22
23
24
25
26
# File 'lib/six-updater-web/vendor/plugins/six-import/lib/six/import.rb', line 22

def copy
  t = copy_ll(Kernel.const_get(self.controller_name.singularize.camelize))
  @original_record = t[0]
  @record = t[1]
end

#six_local_auto_loginObject



12
13
14
15
16
17
18
19
20
# File 'lib/six-updater-web/vendor/plugins/six-import/lib/six/import.rb', line 12

def 
  if request.remote_ip == "127.0.0.1" && defined?(SixUpdaterWeb::SIX_ADMIN)
    if SixUpdaterWeb::SIX_ADMIN
      Goldberg::AuthController.set_user(session, 2)
    else
      Goldberg::AuthController.set_user(session, 3)
    end
  end
end