lib/generators/domp/templates/authentication_provider.rb in domp-0.0.1 vs lib/generators/domp/templates/authentication_provider.rb in domp-0.0.2
- old
+ new
@@ -1,7 +1,8 @@
<% module_namespacing do -%>
class AuthenticationProvider < ActiveRecord::Base
has_many :<%= table_name %>
+ has_many :<%= class_name.downcase %>_authentications
<% if Rails::VERSION::MAJOR < 4 -%>
attr_accessible :name
<% end -%>
end
<% end -%>
\ No newline at end of file