Commit 1774945b053f3118fb444e151df2322ea57307bd
1 parent
fe66361c
Exists in
staging
and in
32 other branches
oauth_client: fix edit action in provider's crud
Signed-off-by: Lucas Kanashiro <kanashiro.duarte@gmail.com> Signed-off-by: Macartur Sousa <macartur.sc@gmail.com>
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
plugins/oauth_client/models/oauth_client_plugin/provider.rb
| ... | ... | @@ -11,7 +11,7 @@ class OauthClientPlugin::Provider < ActiveRecord::Base |
| 11 | 11 | settings_items :client_options, type: Hash |
| 12 | 12 | |
| 13 | 13 | attr_accessible :name, :strategy, :enabled, :site, :image_builder, |
| 14 | - :environment, :environment_id, | |
| 14 | + :environment, :environment_id, :options, | |
| 15 | 15 | :client_id, :client_secret, :client_options |
| 16 | 16 | |
| 17 | 17 | scope :enabled, -> { where enabled: true } | ... | ... |
plugins/oauth_client/views/oauth_client_plugin_admin/edit.html.erb
| 1 | 1 | <h1><%= _('Oauth Client Settings') %></h1> |
| 2 | 2 | <h3><%= _('Edit Provider') %></h3> |
| 3 | 3 | |
| 4 | -<%= form_for @provider, :url => {:action => 'edit'}, :method => 'post' do |f| %> | |
| 4 | +<%= form_for @provider, :url => {:action => 'edit', :id => @provider.id}, :method => 'post' do |f| %> | |
| 5 | 5 | |
| 6 | 6 | <div class="enabled"> |
| 7 | 7 | <%= labelled_form_field f.check_box(:enabled) + _('Enabled'), '' %> | ... | ... |