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 CHANGED
@@ -20,7 +20,7 @@ To install the dash do:
20
20
  To generate a resource do:
21
21
  rails g dash:resource model
22
22
 
23
- = Configuration
23
+ = Customize
24
24
 
25
25
  To protect the dash directory edit authorize filter in:
26
26
  app/controller/dash_controller.rb
@@ -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
- route "namespace :dash do resources :#{table_name} end"
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
@@ -1,5 +1,5 @@
1
1
  module Dash
2
- class <%= "#{class_name}Controller" %> < RailsDash::CrudController
2
+ class <%= "#{plural_name.camelize}Controller" %> < RailsDash::CrudController
3
3
 
4
4
  end
5
5
  end
@@ -1,5 +1,5 @@
1
1
  module RailsDash
2
2
 
3
- VERSION = '0.0.1'
3
+ VERSION = '0.0.2'
4
4
 
5
5
  end
@@ -1,6 +1,10 @@
1
1
  Rails.application.routes.draw do
2
2
 
3
- namespace :dash do resources :photos end
3
+ namespace :dash do
4
+
5
+ resources :photos
6
+
7
+ end
4
8
 
5
9
  mount RailsDash::Engine => '/dash'
6
10
 
@@ -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.1
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-07 00:00:00.000000000 Z
12
+ date: 2013-04-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails