lib/goma/config.rb in goma-0.0.1.gamma vs lib/goma/config.rb in goma-0.0.1.rc1

- old
+ new

@@ -132,10 +132,14 @@ config_accessor(:oauth_authentication_class_name) { 'Authentication' } config_accessor(:oauth_provider_attribute_name) { :provider } config_accessor(:oauth_uid_attribute_name) { :uid } + def password_confirmation_attribute_name + @password_confirmation_attribute_name ||= "#{password_attribute_name}_confirmation".to_sym + end + self.instance_methods(false).grep(/attribute_name$/).each do |conf_name| name = conf_name.to_s[0...-15] class_eval <<-RUBY, __FILE__, __LINE__ + 1 alias :#{name}_getter :#{conf_name} @@ -149,13 +153,9 @@ def #{name}_was_getter @#{name}_was_getter ||= "\#{#{name}_getter}_was".to_sym end RUBY - end - - def password_confirmation_attribute_name - @password_confirmation_attribute_name ||= "#{password_attribute_name}_confirmation".to_sym end def oauth_association_name @oauth_association_name ||= oauth_authentication_class_name ? oauth_authentication_class_name.underscore.pluralize.to_sym : ''