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

Version Path
administrador-0.0.32.pre app/concerns/administrador/controller/engine_concern.rb
administrador-0.0.31.pre app/concerns/administrador/controller/engine_concern.rb
administrador-0.0.30.pre app/concerns/administrador/controller/engine_concern.rb
administrador-0.0.29.pre app/concerns/administrador/controller/engine_concern.rb
administrador-0.0.28.pre app/concerns/administrador/controller/engine_concern.rb
administrador-0.0.27.pre app/concerns/administrador/controller/engine_concern.rb
administrador-0.0.26.pre app/concerns/administrador/controller/engine_concern.rb
administrador-0.0.25.pre app/concerns/administrador/controller/engine_concern.rb
administrador-0.0.24.pre app/concerns/administrador/controller/engine_concern.rb
administrador-0.0.22.pre app/concerns/administrador/controller/engine_concern.rb
administrador-0.0.21.pre app/concerns/administrador/controller/engine_concern.rb
administrador-0.0.20.pre app/concerns/administrador/controller/engine_concern.rb
administrador-0.0.18.pre app/concerns/administrador/controller/engine_concern.rb
administrador-0.0.17.pre app/concerns/administrador/controller/engine_concern.rb
administrador-0.0.16.pre app/concerns/administrador/controller/engine_concern.rb
administrador-0.0.15.pre app/concerns/administrador/controller/engine_concern.rb
administrador-0.0.14.pre app/concerns/administrador/controller/engine_concern.rb
administrador-0.0.13.pre app/concerns/administrador/controller/engine_concern.rb
administrador-0.0.12.pre app/concerns/administrador/controller/engine_concern.rb
administrador-0.0.11.pre app/concerns/administrador/controller/engine_concern.rb