15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# File 'lib/generators/toolchest/consent_generator.rb', line 15
def show_instructions
say ""
say "Consent view ejected!", :green
say ""
say " Customize at: app/views/toolchest/oauth/authorizations/new.html.erb"
say " It renders inside your app's layout (via yield)."
say ""
say " Available instance variables:"
say " @client_name — OAuth application name"
say " @scope_list — [{ name: 'posts:read', description: 'View posts' }, ...]"
say " @oauth_params — hash of hidden fields for the form"
say " @scope_values — raw scope strings"
say " @authorize_url — POST target for the form"
say ""
say " For full control, also eject the controller:"
say " rails g toolchest:oauth_views"
say ""
end
|