Skip to content

Commit

Permalink
Pronouns are pronouns
Browse files Browse the repository at this point in the history
  • Loading branch information
CoralineAda committed Jul 31, 2017
1 parent 161a048 commit 127ef61
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion alice/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ def set_pronouns(pronouns)
end

def pronouns
"Preferred pronouns: #{self.pronoun_primary}/#{pronoun_objective}/#{pronoun_possessive}/#{pronoun_predicate}. "
"Pronouns: #{self.pronoun_primary}/#{pronoun_objective}/#{pronoun_possessive}/#{pronoun_predicate}. "
end

def name
Expand Down
18 changes: 18 additions & 0 deletions tasks/database.rake
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
namespace :database do

desc "Dump all data as json"
task :dump_to_json do
Actor.all.each{ |actor| p actor.to_json }
Beverage.all.each{ |actor| p actor.to_json }
Bio.all.each{ |actor| p actor.to_json }
Catchphrase.all.each{ |actor| p actor.to_json }
Context.all.each{ |actor| p actor.to_json }
Door.all.each{ |actor| p actor.to_json }
Factoid.all.each{ |actor| p actor.to_json }
Item.all.each{ |actor| p actor.to_json }
Message::Command.all.each{ |actor| p actor.to_json }
OH.all.each{ |actor| p actor.to_json }
Place.all.each{ |actor| p actor.to_json }
Place.all.each{ |actor| p actor.to_json }
User.all.each{ |actor| p actor.to_json }
Wand.all.each{ |actor| p actor.to_json }
end

desc "Copy production database to local"
task :sync_to_local do
system "mongodump -h #{ENV['DB_HOST']} -d alicebot -u #{ENV['DB_USER']} -p #{ENV['DB_PASS']} -o db/backups/"
Expand Down

0 comments on commit 127ef61

Please sign in to comment.