Sha256: 3723ce0423093af7363fbaedbba04149740676693a2c4b2d338caf9a9a5461eb
Contents?: true
Size: 537 Bytes
Versions: 80
Compression:
Stored size: 537 Bytes
Contents
require_dependency "ishapi/application_controller" module Ishapi class NewsitemsController < ApplicationController before_action :check_profile # , except: [ :index ] # @TODO: this is fucked # before_action :check_multiprofile, only: [ :index ] def index if params[:domain] resource = Site.find_by( :domain => params[:domain], :lang => :en ) else resource = current_user.profile end authorize! :show, resource @newsitems = current_user.profile.newsitems end end end
Version data entries
80 entries across 80 versions & 1 rubygems