Sha256: 99bcfd3ecc9357e04ed8d236f5d95741577cd73a61b66a169c27f8ea4401385e
Contents?: true
Size: 661 Bytes
Versions: 3
Compression:
Stored size: 661 Bytes
Contents
class Balrog::Engine < Rails::Engine # Make authenticate_with_balrog! available. initializer "balrog.action_controller" do ActiveSupport.on_load(:action_controller) do require_relative 'helpers' include Balrog::Helpers end end # Add balrog_logout_button as a global view helper. initializer "balrog.action_view" do ActiveSupport.on_load(:action_view) do require_relative 'view_helpers' include Balrog::ViewHelpers end end # Precompile the Balrog assets initializer "balrog.assets.precompile" do |app| app.config.assets.precompile += %w( balrog/gate.css balrog/logo.png ) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
balrog-1.1.0 | lib/balrog/engine.rb |
balrog-1.0.0 | lib/balrog/engine.rb |
balrog-0.2.0 | lib/balrog/engine.rb |