diff --git a/plugins/oauth_client/models/oauth_client_plugin/provider.rb b/plugins/oauth_client/models/oauth_client_plugin/provider.rb index a67cb74..c3d7864 100644 --- a/plugins/oauth_client/models/oauth_client_plugin/provider.rb +++ b/plugins/oauth_client/models/oauth_client_plugin/provider.rb @@ -11,7 +11,7 @@ class OauthClientPlugin::Provider < ActiveRecord::Base settings_items :client_options, type: Hash attr_accessible :name, :strategy, :enabled, :site, :image_builder, - :environment, :environment_id, + :environment, :environment_id, :options, :client_id, :client_secret, :client_options scope :enabled, -> { where enabled: true } diff --git a/plugins/oauth_client/views/oauth_client_plugin_admin/edit.html.erb b/plugins/oauth_client/views/oauth_client_plugin_admin/edit.html.erb index 0848bf9..eb2db50 100644 --- a/plugins/oauth_client/views/oauth_client_plugin_admin/edit.html.erb +++ b/plugins/oauth_client/views/oauth_client_plugin_admin/edit.html.erb @@ -1,7 +1,7 @@

<%= _('Oauth Client Settings') %>

<%= _('Edit Provider') %>

-<%= form_for @provider, :url => {:action => 'edit'}, :method => 'post' do |f| %> +<%= form_for @provider, :url => {:action => 'edit', :id => @provider.id}, :method => 'post' do |f| %>
<%= labelled_form_field f.check_box(:enabled) + _('Enabled'), '' %> -- libgit2 0.21.2