Skip to content

Commit

Permalink
Remove session_table_name method because this is global and used only…
Browse files Browse the repository at this point in the history
… once.
  • Loading branch information
kennyj committed Jun 25, 2012
1 parent 20e8344 commit 09bb777
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions activerecord/lib/active_record/railties/databases.rake
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ db_namespace = namespace :db do


# desc "Clear the sessions table" # desc "Clear the sessions table"
task :clear => [:environment, :load_config] do task :clear => [:environment, :load_config] do
ActiveRecord::Base.connection.execute "DELETE FROM #{session_table_name}" ActiveRecord::Base.connection.execute "DELETE FROM #{ActiveRecord::SessionStore::Session.table_name}"
end end
end end
end end
Expand Down Expand Up @@ -450,10 +450,6 @@ end


task 'test:prepare' => 'db:test:prepare' task 'test:prepare' => 'db:test:prepare'


def session_table_name
ActiveRecord::SessionStore::Session.table_name
end

def set_firebird_env(config) def set_firebird_env(config)
ENV['ISC_USER'] = config['username'].to_s if config['username'] ENV['ISC_USER'] = config['username'].to_s if config['username']
ENV['ISC_PASSWORD'] = config['password'].to_s if config['password'] ENV['ISC_PASSWORD'] = config['password'].to_s if config['password']
Expand Down

0 comments on commit 09bb777

Please sign in to comment.