Class: Knitkit::BaseController

Inherits:
ErpApp::ApplicationController
  • Object
show all
Defined in:
app/controllers/knitkit/base_controller.rb

Instance Method Summary collapse

Instance Method Details

#view_current_publicationObject



13
14
15
16
# File 'app/controllers/knitkit/base_controller.rb', line 13

def view_current_publication
  session[:website_version].delete_if{|item| item[:website_id] == @website.id}
  redirect_to request.env["HTTP_REFERER"]
end

#websiteObject



9
10
11
# File 'app/controllers/knitkit/base_controller.rb', line 9

def website
  @website
end