cirandas.net

ref: master

plugins/site_tour/controllers/public/site_tour_plugin_public_controller.rb


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
class SiteTourPluginPublicController < PublicController

  before_filter :login_required

  def mark_action
    user.site_tour_plugin_actions += [params[:action_name]].flatten
    user.site_tour_plugin_actions.uniq!
    render :json => {:ok => user.save}
  end

end