lib/crosstie/templates/user.rb in crosstie-0.0.3 vs lib/crosstie/templates/user.rb in crosstie-0.0.4
- old
+ new
@@ -1,4 +1,21 @@
+# user.rb
+inject_into_file "app/models/user.rb", before: 'end' do
+<<-EOF
+
+ # crosstie skeleton
+
+ # ldap
+
+ # username
+
+ # authentication_token
+
+ # authorization
+
+EOF
+end
+
# add username to users
inject_into_file "app/models/user.rb", after: "# username\n" do
<<-EOF
alias_attribute :name, :username
EOF