Sha256: e9f26d489c62cb8027d83133ca44f820f96f6fd2b1a414b1a2bfeba4673971ea

Contents?: true

Size: 454 Bytes

Versions: 12

Compression:

Stored size: 454 Bytes

Contents

module Plutonium
  module Rodauth
    module ControllerMethods
      extend ActiveSupport::Concern

      included do
        helper Plutonium::Helpers::ApplicationHelper
        helper Plutonium::Helpers::AssetsHelper

        layout "rodauth"
        append_view_path File.expand_path("app/views", Plutonium.root)
        helper_method :root_path
      end

      private

      def root_path
        rodauth.login_redirect
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
plutonium-0.19.2 lib/plutonium/rodauth/controller_methods.rb
plutonium-0.19.1 lib/plutonium/rodauth/controller_methods.rb
plutonium-0.19.0 lib/plutonium/rodauth/controller_methods.rb
plutonium-0.18.8 lib/plutonium/rodauth/controller_methods.rb
plutonium-0.18.7 lib/plutonium/rodauth/controller_methods.rb
plutonium-0.18.6 lib/plutonium/rodauth/controller_methods.rb
plutonium-0.18.5 lib/plutonium/rodauth/controller_methods.rb
plutonium-0.18.4 lib/plutonium/rodauth/controller_methods.rb
plutonium-0.18.3 lib/plutonium/rodauth/controller_methods.rb
plutonium-0.18.2 lib/plutonium/rodauth/controller_methods.rb
plutonium-0.18.1 lib/plutonium/rodauth/controller_methods.rb
plutonium-0.18.0 lib/plutonium/rodauth/controller_methods.rb