lib/sequel/plugins/devise.rb in sequel-devise-0.0.7 vs lib/sequel/plugins/devise.rb in sequel-devise-0.0.8
- old
+ new
@@ -42,9 +42,14 @@
update_attributes key => value
end
end
module ClassMethods
+
+ def human_attribute_name(key)
+ key.to_s
+ end
+
Model::HOOKS.each do |hook|
define_method(hook) do |method = nil, options = {}, &block|
if Symbol === (if_method = options[:if])
orig_block = block
block = nil