Sha256: ace9326e30a000e5ef4d2bde44d74756a1934f906030f8a4aac7deeea6da15b0
Contents?: true
Size: 682 Bytes
Versions: 24
Compression:
Stored size: 682 Bytes
Contents
module Plutonium module Core module Controllers module Bootable extend ActiveSupport::Concern included do class_attribute :current_package, instance_writer: false, instance_predicate: false class_attribute :current_engine, instance_writer: false, instance_predicate: false helper_method :current_engine, :current_package end class_methods do def boot(package) self.current_package = package self.current_engine = "#{package}::Engine".constantize prepend_view_path current_engine.paths["app/views"].first end end end end end end
Version data entries
24 entries across 24 versions & 1 rubygems