Commit e6c893a24a99d562188cbc6ad57f363b5bf58da6
1 parent
e045c942
Exists in
master
and in
20 other branches
rails4: changed missed set_table_name
Showing
4 changed files
with
5 additions
and
4 deletions
Show diff stats
plugins/oauth_client/lib/oauth_client_plugin/user_provider.rb
@@ -3,7 +3,7 @@ class OauthClientPlugin::UserProvider < ActiveRecord::Base | @@ -3,7 +3,7 @@ class OauthClientPlugin::UserProvider < ActiveRecord::Base | ||
3 | belongs_to :user, :class_name => 'User' | 3 | belongs_to :user, :class_name => 'User' |
4 | belongs_to :provider, :class_name => 'OauthClientPlugin::Provider' | 4 | belongs_to :provider, :class_name => 'OauthClientPlugin::Provider' |
5 | 5 | ||
6 | - set_table_name :oauth_client_plugin_user_providers | 6 | + self.table_name = :oauth_client_plugin_user_providers |
7 | 7 | ||
8 | attr_accessible :user, :provider, :enabled | 8 | attr_accessible :user, :provider, :enabled |
9 | 9 |
plugins/sniffer/lib/sniffer_plugin/opportunity.rb
1 | class SnifferPlugin::Opportunity < ActiveRecord::Base | 1 | class SnifferPlugin::Opportunity < ActiveRecord::Base |
2 | 2 | ||
3 | - set_table_name :sniffer_plugin_opportunities | 3 | + self.table_name = :sniffer_plugin_opportunities |
4 | 4 | ||
5 | belongs_to :sniffer_profile, :class_name => 'SnifferPlugin::Profile', :foreign_key => :profile_id | 5 | belongs_to :sniffer_profile, :class_name => 'SnifferPlugin::Profile', :foreign_key => :profile_id |
6 | has_one :profile, :through => :sniffer_profile | 6 | has_one :profile, :through => :sniffer_profile |
plugins/sniffer/lib/sniffer_plugin/profile.rb
1 | class SnifferPlugin::Profile < ActiveRecord::Base | 1 | class SnifferPlugin::Profile < ActiveRecord::Base |
2 | 2 | ||
3 | - set_table_name :sniffer_plugin_profiles | 3 | + self.table_name = :sniffer_plugin_profiles |
4 | 4 | ||
5 | belongs_to :profile, :class_name => '::Profile' | 5 | belongs_to :profile, :class_name => '::Profile' |
6 | 6 |
plugins/stoa/lib/stoa_plugin/usp_aluno_turma_grad.rb
1 | class StoaPlugin::UspAlunoTurmaGrad < ActiveRecord::Base | 1 | class StoaPlugin::UspAlunoTurmaGrad < ActiveRecord::Base |
2 | 2 | ||
3 | establish_connection(:stoa) | 3 | establish_connection(:stoa) |
4 | - set_table_name('alunoturma_gr') | 4 | + |
5 | + self.table_name = :alunoturma_gr | ||
5 | 6 | ||
6 | def self.exists?(usp_id) | 7 | def self.exists?(usp_id) |
7 | StoaPlugin::UspUser.find_by_codpes(usp_id.to_i) | 8 | StoaPlugin::UspUser.find_by_codpes(usp_id.to_i) |