Sha256: 1c5d35f9fc5edbd16a2c5759da227571ab986189a8601f0c1951b7f13aebccb5
Contents?: true
Size: 528 Bytes
Versions: 10
Compression:
Stored size: 528 Bytes
Contents
module Neutral class ApplicationController < ::ApplicationController protect_from_forgery rescue_from Errors::RequireLogin, with: :require_login rescue_from Errors::CannotChange, with: :cannot_change rescue_from Errors::DuplicateVote, with: :duplicate private def require_login render 'neutral/votes/errors/require_login' end def cannot_change render 'neutral/votes/errors/cannot_change' end def duplicate render 'neutral/votes/errors/duplicate' end end end
Version data entries
10 entries across 10 versions & 1 rubygems