rails_db_info 0.1.7 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Rakefile +1 -1
- data/app/views/layouts/rails_db_info/application.html.erb +1 -1
- data/config/routes.rb +1 -1
- data/lib/rails/routes.rb +1 -1
- data/lib/rails_db_info/version.rb +1 -1
- data/lib/rails_db_info.rb +1 -1
- data/test/dummy/app/controllers/application_controller.rb +1 -1
- data/test/dummy/app/views/layouts/application.html.erb +1 -1
- data/test/dummy/config/initializers/session_store.rb +2 -1
- data/test/dummy/config/initializers/wrap_parameters.rb +1 -1
- data/test/dummy/config/routes.rb +1 -1
- data/test/dummy/log/test.log +3945 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb2188ee7c5434f3d18b246a523115f77c2e6e0d
|
4
|
+
data.tar.gz: 84585a0aab9344bd2ecee6a1678fc3042399f7a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a1e54a6ff93d52ad9729f0d125cbbea7405e726d6c69c90edbd3361827941cd50c66104c4061c987db1c38160e57ae335632e772b1111235c067bb89f0e05d24
|
7
|
+
data.tar.gz: 0bc0f6606a2552f0227a6cbc6b6f7472d5a2ef38219b15ec2fd63c270195ea2675b3708e65669ee0fed5ae172cd3a60aaa7469a21d1a6667fbf7493c0d3d1ec0
|
data/Rakefile
CHANGED
@@ -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
|
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
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
|
6
|
+
mount RailsDbInfo::Engine => "/rails/info/db", :as => options[:as] || 'rails_db_info'
|
7
7
|
end
|
8
8
|
end
|
9
9
|
end
|
data/lib/rails_db_info.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
<html>
|
3
3
|
<head>
|
4
4
|
<title>Dummy</title>
|
5
|
-
<%= stylesheet_link_tag "application", media
|
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.
|
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
|
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.
|