lib/thesilverspoon.rb~ in thesilverspoon-0.0.21 vs lib/thesilverspoon.rb~ in thesilverspoon-0.0.22
- old
+ new
@@ -234,10 +234,11 @@
end
def create_new_user
s="\nUser.create!(:email=>'admin@tss.com',:password=>'secret',:password_confirmation=>'secret',:admin=>true)"
append_to_file "db/seeds.rb", s
+inject_into_file "app/models/user.rb",",:admin",:after=>" attr_accessible :email, :password, :password_confirmation, :remember_me"
end
def create_root_route
@@ -318,12 +319,12 @@
#remove hardcoding and make a loop for including all files in this folder
=end
remove_file "app/views/layouts/application.html.erb"
template "#{Install.source_root}/layouts/application.html.erb", "app/views/layouts/application.html.erb"
template "#{Install.source_root}/layouts//dummy_data.html.erb", "app/views/layouts/scaffold.html.erb"
- template "#{Install.source_root}/layouts/information_page.html.erb", "app/views/layouts/information_page.html.erb"
- template "#{Install.source_root}/layouts/pageslide_form_at.html.erb", "app/views/layouts/pageslide_form_at.html.erb"
- template "#{Install.source_root}/layouts/welcome.html.erb", "app/views/layouts/welcome.html.erb"
+ #template "#{Install.source_root}/layouts/information_page.html.erb", "app/views/layouts/information_page.html.erb"
+# template "#{Install.source_root}/layouts/pageslide_form_at.html.erb", "app/views/layouts/pageslide_form_at.html.erb"
+ # template "#{Install.source_root}/layouts/welcome.html.erb", "app/views/layouts/welcome.html.erb"
end
def insert_devise_code
inject_into_file "config/application.rb", 'require "devise"', :after=>"require File.expand_path('../boot', __FILE__)\n"