lib/generators/social2social/install_generator.rb in social2social-0.0.2 vs lib/generators/social2social/install_generator.rb in social2social-0.0.3

- old
+ new

@@ -17,11 +17,19 @@ copy_file 'initializer.rb', 'config/initializers/social2social.rb' end def inject_remote_user_relation append_file 'config/relations.yml', - "\nremote_user:\n friend:\n name: friend\n permissions:\n - [ follow ]\n"+ - " public:\n name: public\n permissions:\n - [ read, tie, star_tie ]" + "\nremote_subject:\n friend:\n name: friend\n permissions:\n - [ follow ]\n sphere: personal\n"+ + " public:\n name: public\n permissions:\n - [ read, tie, star_tie ]\n sphere: personal" + end + + def inject_translations + copy_file 'en.yml', 'config/locales/s2s.en.yml' + end + + def copy_public + directory "public" end require 'rails/generators/active_record' def self.next_migration_number(dirname)