rails_dash 0.0.1 → 0.0.2
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.
- data/README.rdoc +1 -1
- data/lib/generators/dash/install_generator.rb +1 -0
- data/lib/generators/dash/resource_generator.rb +3 -1
- data/lib/generators/dash/templates/resource.erb +1 -1
- data/lib/rails_dash/version.rb +1 -1
- data/test/dummy/config/routes.rb +5 -1
- data/test/dummy/log/development.log +4 -0
- metadata +2 -2
data/README.rdoc
CHANGED
@@ -5,6 +5,7 @@ module Dash
|
|
5
5
|
|
6
6
|
def install
|
7
7
|
route "mount RailsDash::Engine => '/dash'"
|
8
|
+
route "namespace :dash do\n\n end"
|
8
9
|
template 'dash.erb', 'app/controllers/dash_controller.rb'
|
9
10
|
template 'layout.erb', 'app/views/layouts/dash.html.haml'
|
10
11
|
template 'filter.erb', 'app/views/dash/shared/_filter.html.haml'
|
@@ -4,7 +4,9 @@ module Dash
|
|
4
4
|
source_root File.expand_path('../templates', __FILE__)
|
5
5
|
|
6
6
|
def add_route
|
7
|
-
|
7
|
+
gsub_file 'config/routes.rb', /namespace :dash(.*)/ do |match|
|
8
|
+
"#{match}\n\n resources :#{table_name}"
|
9
|
+
end
|
8
10
|
end
|
9
11
|
|
10
12
|
def create_templates
|
data/lib/rails_dash/version.rb
CHANGED
data/test/dummy/config/routes.rb
CHANGED
@@ -8087,3 +8087,7 @@ Served asset /application.js - 304 Not Modified (0ms)
|
|
8087
8087
|
|
8088
8088
|
Started GET "/assets/rails_dash/filter.png" for 127.0.0.1 at 2013-04-06 22:00:44 -0300
|
8089
8089
|
Served asset /rails_dash/filter.png - 304 Not Modified (2ms)
|
8090
|
+
Connecting to database specified by database.yml
|
8091
|
+
Connecting to database specified by database.yml
|
8092
|
+
Connecting to database specified by database.yml
|
8093
|
+
Connecting to database specified by database.yml
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_dash
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-04-
|
12
|
+
date: 2013-04-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|