rails_db_info 0.1.7 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1ae99a334d11999d3e8865ee69c07a3747a8977d
4
- data.tar.gz: bd252afd14826532231746ac1f7fe1f6edb72bca
3
+ metadata.gz: cb2188ee7c5434f3d18b246a523115f77c2e6e0d
4
+ data.tar.gz: 84585a0aab9344bd2ecee6a1678fc3042399f7a2
5
5
  SHA512:
6
- metadata.gz: 3384f542f07269ed2423b9a2de58ae2ac2b5f838af266f77ab05dee80cf44ae5198ffec17b8921d1840992fe51b2ccfa700a3886c97101c2ae221b7983875310
7
- data.tar.gz: 32e27b6785f614799a79d516f6a3eac9608cc976e89846deed645672c4ff80ecd52ebccbec396e2bab2a3634dd0f8a4715f01c5236697f13522757c35925d94f
6
+ metadata.gz: a1e54a6ff93d52ad9729f0d125cbbea7405e726d6c69c90edbd3361827941cd50c66104c4061c987db1c38160e57ae335632e772b1111235c067bb89f0e05d24
7
+ data.tar.gz: 0bc0f6606a2552f0227a6cbc6b6f7472d5a2ef38219b15ec2fd63c270195ea2675b3708e65669ee0fed5ae172cd3a60aaa7469a21d1a6667fbf7493c0d3d1ec0
data/Rakefile CHANGED
@@ -30,4 +30,4 @@ Rake::TestTask.new(:test) do |t|
30
30
  t.verbose = false
31
31
  end
32
32
 
33
- task default: :test
33
+ task :default => :test
@@ -2,7 +2,7 @@
2
2
  <html>
3
3
  <head>
4
4
  <title>Database Info</title>
5
- <%= stylesheet_link_tag "rails_db_info/application", media: "all" %>
5
+ <%= stylesheet_link_tag "rails_db_info/application", :media => "all" %>
6
6
  <%# javascript_include_tag "rails_db_info/application" %>
7
7
  <%= csrf_meta_tags %>
8
8
  </head>
data/config/routes.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  RailsDbInfo::Engine.routes.draw do
2
2
  root :to => 'tables#index'
3
- resources :tables, only: [:index, :show] do
3
+ resources :tables, :only => [:index, :show] do
4
4
  get 'entries'
5
5
  end
6
6
  end
data/lib/rails/routes.rb CHANGED
@@ -3,7 +3,7 @@ module ActionDispatch::Routing
3
3
  # Includes mount_rails_db_info method for routes. This method is responsible to
4
4
  # generate all needed routes for rails_db_info
5
5
  def mount_rails_db_info(options = {})
6
- mount RailsDbInfo::Engine => "/rails/info/db", as: options[:as] || 'rails_db_info'
6
+ mount RailsDbInfo::Engine => "/rails/info/db", :as => options[:as] || 'rails_db_info'
7
7
  end
8
8
  end
9
9
  end
@@ -1,3 +1,3 @@
1
1
  module RailsDbInfo
2
- VERSION = "0.1.7"
2
+ VERSION = "0.1.8"
3
3
  end
data/lib/rails_db_info.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  require "rails_db_info/engine"
2
- require_relative "rails/routes"
2
+ require File.expand_path("rails/routes", File.dirname(__FILE__))
3
3
 
4
4
  module RailsDbInfo
5
5
  end
@@ -1,5 +1,5 @@
1
1
  class ApplicationController < ActionController::Base
2
2
  # Prevent CSRF attacks by raising an exception.
3
3
  # For APIs, you may want to use :null_session instead.
4
- protect_from_forgery with: :exception
4
+ protect_from_forgery :with => :exception
5
5
  end
@@ -2,7 +2,7 @@
2
2
  <html>
3
3
  <head>
4
4
  <title>Dummy</title>
5
- <%= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true %>
5
+ <%= stylesheet_link_tag "application", :media => "all", "data-turbolinks-track" => true %>
6
6
  <%= javascript_include_tag "application", "data-turbolinks-track" => true %>
7
7
  <%= csrf_meta_tags %>
8
8
  </head>
@@ -1,3 +1,4 @@
1
1
  # Be sure to restart your server when you modify this file.
2
2
 
3
- Dummy::Application.config.session_store :cookie_store, key: '_dummy_session'
3
+ Dummy::Application.config.secret_token = "some secret phrase of at least 30 characters"
4
+ Dummy::Application.config.session_store :cookie_store, :key => '_dummy_session'
@@ -5,7 +5,7 @@
5
5
 
6
6
  # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
7
  ActiveSupport.on_load(:action_controller) do
8
- wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
8
+ wrap_parameters :format => [:json] if respond_to?(:wrap_parameters)
9
9
  end
10
10
 
11
11
  # To enable root element in JSON for ActiveRecord objects.
@@ -1,6 +1,6 @@
1
1
  Rails.application.routes.draw do
2
2
  if ENV['CATCH_ALL_ROUTE']
3
- mount_rails_db_info as: 'rails_db_info_engine'
3
+ mount_rails_db_info :as => 'rails_db_info_engine'
4
4
  get '*path' => 'foo#bar'
5
5
  end
6
6
  end