Sha256: b353102184c2e81aa6a3c1a08c6903af7806784ecec53345bb1a5f6d364d171d
Contents?: true
Size: 375 Bytes
Versions: 30
Compression:
Stored size: 375 Bytes
Contents
module Administrador module Controller module EngineConcern extend ActiveSupport::Concern included do helper_method :engine_class end class_methods do def engine_class "#{name.deconstantize}::Engine".constantize end end def engine_class self.class.engine_class end end end end
Version data entries
30 entries across 30 versions & 1 rubygems