test/models/mysql_user.rb in methodmissing-scrooge-2.2.1 vs test/models/mysql_user.rb in methodmissing-scrooge-2.2.2
- old
+ new
@@ -1,4 +1,8 @@
class MysqlUser < ActiveRecord::Base
set_table_name 'user'
set_primary_key 'User'
+
+ def after_initialize
+ max_connections if @attributes.has_key?("max_user_connections")
+ end
end
\ No newline at end of file