Sha256: d500603db488f34bcbd7a3f1f3cad80d03c5658fe76fdeeb59df5e74528534db
Contents?: true
Size: 659 Bytes
Versions: 1
Compression:
Stored size: 659 Bytes
Contents
module Wallaby class CoreController < SecureController helper Wallaby::CoreHelper before_action :authenticate_user!, except: [ :status ] def status render text: 'healthy' end protected begin # helper methods helper_method \ :current_resources_name, :current_model_class def current_resources_name @current_resources_name ||= params[:resources] end def current_model_class @current_model_class ||= if self.class.respond_to? :model_class self.class.model_class end || Wallaby::Utils.to_model_class(current_resources_name) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
wallaby-4.1.6 | app/controllers/wallaby/core_controller.rb |