Sha256: a84dc05fdfff9599ca6f1033238a33b2002cdff2fac357686b08ff54a822a8bc

Contents?: true

Size: 270 Bytes

Versions: 3

Compression:

Stored size: 270 Bytes

Contents

module Composable
  module Pwdless
    class BaseController < Pwdless.parent_controller.constantize
      # Find the resource name from the request
      def resource_name
        @resource_name ||= request.env["composable_pwdless_resource"]
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
composable-pwdless-0.0.12 app/controllers/composable/pwdless/base_controller.rb
composable-pwdless-0.0.11 app/controllers/composable/pwdless/base_controller.rb
composable-pwdless-0.0.10 app/controllers/composable/pwdless/base_controller.rb