hobo_files/plugin/init.rb in hobo-0.6.1 vs hobo_files/plugin/init.rb in hobo-0.6.2

- old
+ new

@@ -43,9 +43,14 @@ class ActiveRecord::Base def self.hobo_model include Hobo::Model end + def self.hobo_user_model(login_attr=nil, &b) + include Hobo::Model + include Hobo::AuthenticatedUser + set_login_attr(login_attr, &b) if login_attr + end end # Default settings Hobo.developer_features = ["development", "test"].include?(RAILS_ENV) if Hobo.developer_features? == nil