lib/generators/cream/helpers/args_helper.rb in cream-0.8.7 vs lib/generators/cream/helpers/args_helper.rb in cream-0.8.8
- old
+ new
@@ -13,10 +13,10 @@
defaults = default_roles? ? ['guest', 'admin'] : []
(options[:roles] + defaults).flat_uniq
end
def has_user_model?
- model_file?(user_class)
+ model_file?(user_class.as_filename)
end
def set_orm
self.class.use_orm :"#{orm}"
end
\ No newline at end of file