lib/generators/roda/oauth/views_generator.rb in rodauth-oauth-0.0.2 vs lib/generators/roda/oauth/views_generator.rb in rodauth-oauth-0.0.3
- old
+ new
@@ -5,23 +5,18 @@
module Rodauth::OAuth
module Rails
module Generators
class ViewsGenerator < ::Rails::Generators::Base
source_root "#{__dir__}/templates"
- namespace "roda:oauth:views"
+ namespace "rodauth:oauth:views"
DEFAULT = %w[oauth_authorize].freeze
VIEWS = {
oauth_authorize: DEFAULT,
oauth_applications: %w[oauth_applications oauth_application new_oauth_application]
}.freeze
DEPENDENCIES = {
- active_sessions: :logout,
- otp: :two_factor_base,
- sms_codes: :two_factor_base,
- recovery_codes: :two_factor_base,
- webauthn: :two_factor_base
}.freeze
class_option :features, type: :array,
desc: "Roda OAuth features to generate views for (oauth_applications etc.)",
default: DEFAULT