rails_dash 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- metadata +15 -373
- data/MIT-LICENSE +0 -20
- data/README.rdoc +0 -47
- data/Rakefile +0 -40
- data/app/assets/images/rails_dash/filter.png +0 -0
- data/app/assets/images/rails_dash/shadow.png +0 -0
- data/app/assets/stylesheets/rails_dash/content.scss +0 -5
- data/app/assets/stylesheets/rails_dash/flash.scss +0 -24
- data/app/assets/stylesheets/rails_dash/footer.scss +0 -16
- data/app/assets/stylesheets/rails_dash/forms.scss +0 -85
- data/app/assets/stylesheets/rails_dash/grid.scss +0 -65
- data/app/assets/stylesheets/rails_dash/header.scss +0 -19
- data/app/assets/stylesheets/rails_dash/index.css +0 -3
- data/app/assets/stylesheets/rails_dash/navigation.scss +0 -34
- data/app/assets/stylesheets/rails_dash/page.scss +0 -9
- data/app/assets/stylesheets/rails_dash/pager.scss +0 -36
- data/app/assets/stylesheets/rails_dash/style.scss +0 -53
- data/app/helpers/rails_dash/base_helper.rb +0 -9
- data/app/views/rails_dash/_header.html.erb +0 -8
- data/config/locales/en.yml +0 -21
- data/config/locales/es.yml +0 -21
- data/lib/generators/dash/install_generator.rb +0 -12
- data/lib/generators/dash/resource_generator.rb +0 -24
- data/lib/generators/dash/templates/base_controller.rb +0 -15
- data/lib/generators/dash/templates/dash.html.erb +0 -49
- data/lib/generators/dash/templates/form.html.erb +0 -7
- data/lib/generators/dash/templates/index.html.erb +0 -19
- data/lib/generators/dash/templates/resource_controller.rb +0 -49
- data/lib/rails_dash.rb +0 -5
- data/lib/rails_dash/engine.rb +0 -7
- data/lib/rails_dash/version.rb +0 -5
- data/test/dummy/README.rdoc +0 -261
- data/test/dummy/Rakefile +0 -7
- data/test/dummy/app/assets/javascripts/application.js +0 -15
- data/test/dummy/app/assets/stylesheets/application.css +0 -13
- data/test/dummy/app/controllers/application_controller.rb +0 -3
- data/test/dummy/app/controllers/dash/photos_controller.rb +0 -49
- data/test/dummy/app/controllers/dash_controller.rb +0 -11
- data/test/dummy/app/helpers/application_helper.rb +0 -2
- data/test/dummy/app/models/photo.rb +0 -7
- data/test/dummy/app/views/dash/photos/form.html.erb +0 -11
- data/test/dummy/app/views/dash/photos/index.html.erb +0 -19
- data/test/dummy/app/views/layouts/application.html.erb +0 -14
- data/test/dummy/app/views/layouts/dash.html.erb +0 -49
- data/test/dummy/app/views/statics/home.html.haml +0 -4
- data/test/dummy/app/views/statics/other.html.haml +0 -4
- data/test/dummy/config.ru +0 -4
- data/test/dummy/config/application.rb +0 -63
- data/test/dummy/config/boot.rb +0 -10
- data/test/dummy/config/database.yml +0 -25
- data/test/dummy/config/environment.rb +0 -5
- data/test/dummy/config/environments/development.rb +0 -37
- data/test/dummy/config/environments/production.rb +0 -67
- data/test/dummy/config/environments/test.rb +0 -37
- data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/test/dummy/config/initializers/inflections.rb +0 -15
- data/test/dummy/config/initializers/mime_types.rb +0 -5
- data/test/dummy/config/initializers/secret_token.rb +0 -7
- data/test/dummy/config/initializers/session_store.rb +0 -8
- data/test/dummy/config/initializers/wrap_parameters.rb +0 -14
- data/test/dummy/config/locales/en.yml +0 -5
- data/test/dummy/config/routes.rb +0 -13
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20130402143213_create_photos.rb +0 -12
- data/test/dummy/db/production.sqlite3 +0 -0
- data/test/dummy/db/schema.rb +0 -22
- data/test/dummy/log/development.log +0 -26406
- data/test/dummy/log/production.log +0 -18
- data/test/dummy/log/test.log +0 -1
- data/test/dummy/public/404.html +0 -26
- data/test/dummy/public/422.html +0 -26
- data/test/dummy/public/500.html +0 -25
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/script/rails +0 -6
- data/test/dummy/tmp/cache/assets/BFB/7E0/sprockets%2F9320085d33b800555194fe929982762b +0 -0
- data/test/dummy/tmp/cache/assets/C4B/BD0/sprockets%2F94eaaa522916020d13dd607587191496 +0 -0
- data/test/dummy/tmp/cache/assets/C73/810/sprockets%2F001b4e4880284b42e41d1a6e65628f23 +0 -0
- data/test/dummy/tmp/cache/assets/C8B/270/sprockets%2F7a0602acfe998896b0d470e151625588 +0 -0
- data/test/dummy/tmp/cache/assets/C99/E60/sprockets%2F064aac0041190c605c1728b86db5e660 +0 -0
- data/test/dummy/tmp/cache/assets/C9D/5C0/sprockets%2Fa3870a84599f2900e899d917239fee70 +0 -0
- data/test/dummy/tmp/cache/assets/CA3/D40/sprockets%2Fd0c463ae779d0510a7d2a39201475f80 +0 -0
- data/test/dummy/tmp/cache/assets/CAC/DF0/sprockets%2F68591a55b098a6a551a059f2f8a007c2 +0 -0
- data/test/dummy/tmp/cache/assets/CB0/680/sprockets%2Fa545b40f4926503219dee13976ba83c7 +0 -0
- data/test/dummy/tmp/cache/assets/CB0/DB0/sprockets%2F3b03d1b258e45bf0488808687a3c019f +0 -0
- data/test/dummy/tmp/cache/assets/CB3/790/sprockets%2F95d10b82ed3c32813ae86305967ac495 +0 -0
- data/test/dummy/tmp/cache/assets/CBC/060/sprockets%2Fe48229a61b685914cd5bd763728f35c3 +0 -0
- data/test/dummy/tmp/cache/assets/CC5/330/sprockets%2F822e9659e8ca6a7b8fd06735768a1309 +0 -0
- data/test/dummy/tmp/cache/assets/CC6/480/sprockets%2Fc269551493a16482fab7596f973d8cd5 +0 -0
- data/test/dummy/tmp/cache/assets/CCB/C40/sprockets%2F6c2c30b00feda0096c1523c4721e8647 +0 -0
- data/test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953 +0 -0
- data/test/dummy/tmp/cache/assets/CD9/9F0/sprockets%2F35b50387099edf09e230a9a06e93a22a +0 -0
- data/test/dummy/tmp/cache/assets/CE0/1D0/sprockets%2F95cf9361ed4c73f7736bb1065003c27d +0 -0
- data/test/dummy/tmp/cache/assets/CE5/C90/sprockets%2F0e2f9731d66610f311f7d93ee472be92 +0 -0
- data/test/dummy/tmp/cache/assets/CF2/AE0/sprockets%2F6484cd7d52962c9097ecb92ae30d8826 +0 -0
- data/test/dummy/tmp/cache/assets/CF8/E40/sprockets%2F97e76837bd2bd4d792b34582df74a747 +0 -0
- data/test/dummy/tmp/cache/assets/CFD/B30/sprockets%2F0e7126250acecd256a22173a6c69f33c +0 -0
- data/test/dummy/tmp/cache/assets/D03/FF0/sprockets%2F6159334a6b4a6011f9e4aca85713deb2 +0 -0
- data/test/dummy/tmp/cache/assets/D0C/6D0/sprockets%2F066b73503006b11fe0ca9cf979818bcf +0 -0
- data/test/dummy/tmp/cache/assets/D0C/D50/sprockets%2F1e1fb266cbd216d68ad5f460542f8507 +0 -0
- data/test/dummy/tmp/cache/assets/D12/550/sprockets%2F2feb384c6935a8dc50503c8d6d1c4772 +0 -0
- data/test/dummy/tmp/cache/assets/D13/380/sprockets%2F45ea51d9524b0d78eb92ba6f205e3957 +0 -0
- data/test/dummy/tmp/cache/assets/D1A/8C0/sprockets%2Ff52bc139a9583db6445e577f9a5c614a +0 -0
- data/test/dummy/tmp/cache/assets/D1C/F20/sprockets%2F86ca1d7c73ec19f06bd7f1693d602795 +0 -0
- data/test/dummy/tmp/cache/assets/D1F/C40/sprockets%2F6c48d64b48f391e8cd9bf71508b6147a +0 -0
- data/test/dummy/tmp/cache/assets/D29/0B0/sprockets%2F606c351a2b9c0b15a5dbc5bf073e0377 +0 -0
- data/test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/dummy/tmp/cache/assets/D3A/720/sprockets%2Fd2e3289732e11cf54d74e8ea51acd125 +0 -0
- data/test/dummy/tmp/cache/assets/D3C/F40/sprockets%2Ff0f0ade9590889033e221c7e60c73afa +0 -0
- data/test/dummy/tmp/cache/assets/D41/CA0/sprockets%2F2fd6911b1d88afa5d82480545bd95aa6 +0 -0
- data/test/dummy/tmp/cache/assets/D42/D60/sprockets%2F24c45cda560034c533ee99fa63d5e6c9 +0 -0
- data/test/dummy/tmp/cache/assets/D4B/300/sprockets%2F21c96e74b485df5c493d1b6df0d4e791 +0 -0
- data/test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/test/dummy/tmp/cache/assets/D55/110/sprockets%2F18e497baefd6939772d9cc267d3416ea +0 -0
- data/test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/test/dummy/tmp/cache/assets/D5F/8A0/sprockets%2F0412cd81c0aa11e2ccef0d9e479e7146 +0 -0
- data/test/dummy/tmp/cache/assets/D77/080/sprockets%2Fd231e66bef5f5ccb5a92272f714786dd +0 -0
- data/test/dummy/tmp/cache/assets/D78/AA0/sprockets%2F451a5e76762fe84ce5f63dbc40f08ee3 +0 -0
- data/test/dummy/tmp/cache/assets/D79/0C0/sprockets%2Fffa7fbddfd8a63f466156a14f4471753 +0 -0
- data/test/dummy/tmp/cache/assets/D95/470/sprockets%2F59f10d12bccbc7645c63fbb322c277ee +0 -0
- data/test/dummy/tmp/cache/assets/D9B/E00/sprockets%2Fb66a75bd10bef6da5f16f4fa9113926c +0 -0
- data/test/dummy/tmp/cache/assets/D9D/390/sprockets%2F612e4dfda3799cc2e6ea2b7197ca142d +0 -0
- data/test/dummy/tmp/cache/assets/DA3/120/sprockets%2Fb5fcb985221ac8754fb55d74faa4e1b9 +0 -0
- data/test/dummy/tmp/cache/assets/DA4/4A0/sprockets%2Fb0eaf551806a0469f07288ea4ffdcc9e +0 -0
- data/test/dummy/tmp/cache/assets/DAB/320/sprockets%2F59831ac1cca50d82e29e49d7fbee91f7 +0 -0
- data/test/dummy/tmp/cache/assets/DAC/650/sprockets%2Ff8ec2e25f819797cb9a491d0af22ae9b +0 -0
- data/test/dummy/tmp/cache/assets/DBA/780/sprockets%2Fe231e0256cb57ae5feac27411bb8cab5 +0 -0
- data/test/dummy/tmp/cache/assets/DCC/A40/sprockets%2Fafbcb38cff70c4a1c772c35e8dc24376 +0 -0
- data/test/dummy/tmp/cache/assets/DCD/B00/sprockets%2Fc39efce3c924fd1aa2c0898e0b3e194b +0 -0
- data/test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/test/dummy/tmp/cache/assets/DEF/100/sprockets%2F8b9d88bfa8f8eed7910469ef2ab8a8c7 +0 -0
- data/test/dummy/tmp/cache/assets/DF1/BA0/sprockets%2Ff2aaadaa5f593082c04c59cde41ecc37 +0 -0
- data/test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/dummy/tmp/cache/assets/E05/400/sprockets%2F6df59ebc6ab9ec4b3c24516d6efd3b47 +0 -0
- data/test/dummy/tmp/cache/assets/E29/AA0/sprockets%2F6eaab4ab4dbae1b8b5a6f9286aa966d4 +0 -0
- data/test/dummy/tmp/cache/assets/E3C/BA0/sprockets%2Fc0f6779a15cd28aef5c6da4cf8adf96d +0 -0
- data/test/dummy/tmp/cache/assets/E5D/4B0/sprockets%2Fba31b9d7aabcf86ec3c48fcd7db830e5 +0 -0
- data/test/dummy/tmp/cache/assets/E67/970/sprockets%2F39d69c6bafd9cebefdea7015bd7d0a87 +0 -0
- data/test/dummy/tmp/cache/assets/E93/600/sprockets%2F2daf7d5f74f8c9ac8be0bedcfae6009c +0 -0
- data/test/dummy/tmp/cache/sass/6128927ae7b2ea45af1afbf9ff6b49e6d69ec9f1/autocomplete.sassc +0 -0
- data/test/dummy/tmp/cache/sass/6128927ae7b2ea45af1afbf9ff6b49e6d69ec9f1/content.sassc +0 -0
- data/test/dummy/tmp/cache/sass/6128927ae7b2ea45af1afbf9ff6b49e6d69ec9f1/flash.sassc +0 -0
- data/test/dummy/tmp/cache/sass/6128927ae7b2ea45af1afbf9ff6b49e6d69ec9f1/footer.sassc +0 -0
- data/test/dummy/tmp/cache/sass/6128927ae7b2ea45af1afbf9ff6b49e6d69ec9f1/forms.sassc +0 -0
- data/test/dummy/tmp/cache/sass/6128927ae7b2ea45af1afbf9ff6b49e6d69ec9f1/forms.scssc +0 -0
- data/test/dummy/tmp/cache/sass/6128927ae7b2ea45af1afbf9ff6b49e6d69ec9f1/grid.sassc +0 -0
- data/test/dummy/tmp/cache/sass/6128927ae7b2ea45af1afbf9ff6b49e6d69ec9f1/grid.scssc +0 -0
- data/test/dummy/tmp/cache/sass/6128927ae7b2ea45af1afbf9ff6b49e6d69ec9f1/header.sassc +0 -0
- data/test/dummy/tmp/cache/sass/6128927ae7b2ea45af1afbf9ff6b49e6d69ec9f1/navigation.sassc +0 -0
- data/test/dummy/tmp/cache/sass/6128927ae7b2ea45af1afbf9ff6b49e6d69ec9f1/page.sassc +0 -0
- data/test/dummy/tmp/cache/sass/6128927ae7b2ea45af1afbf9ff6b49e6d69ec9f1/pager.sassc +0 -0
- data/test/dummy/tmp/cache/sass/6128927ae7b2ea45af1afbf9ff6b49e6d69ec9f1/style.sassc +0 -0
- data/test/rails_dash_test.rb +0 -9
- data/test/test_helper.rb +0 -15
data/test/dummy/Rakefile
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
#!/usr/bin/env rake
|
2
|
-
# Add your own tasks in files placed in lib/tasks ending in .rake,
|
3
|
-
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
|
4
|
-
|
5
|
-
require File.expand_path('../config/application', __FILE__)
|
6
|
-
|
7
|
-
Dummy::Application.load_tasks
|
@@ -1,15 +0,0 @@
|
|
1
|
-
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
2
|
-
// listed below.
|
3
|
-
//
|
4
|
-
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
|
5
|
-
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
|
6
|
-
//
|
7
|
-
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
8
|
-
// the compiled file.
|
9
|
-
//
|
10
|
-
// WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
|
11
|
-
// GO AFTER THE REQUIRES BELOW.
|
12
|
-
//
|
13
|
-
//= require jquery
|
14
|
-
//= require jquery_ujs
|
15
|
-
//= require_tree .
|
@@ -1,13 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
3
|
-
* listed below.
|
4
|
-
*
|
5
|
-
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
6
|
-
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
|
7
|
-
*
|
8
|
-
* You're free to add application-wide styles to this file and they'll appear at the top of the
|
9
|
-
* compiled file, but it's generally better to create a new file per style scope.
|
10
|
-
*
|
11
|
-
*= require_self
|
12
|
-
*= require_tree .
|
13
|
-
*/
|
@@ -1,49 +0,0 @@
|
|
1
|
-
module Dash
|
2
|
-
class PhotosController < DashController
|
3
|
-
|
4
|
-
def index
|
5
|
-
@meta_title = @title = Photo.model_name.human(count: 2)
|
6
|
-
@photos = Photo.filter(params[:q]).page(params[:p].present? ? params[:p].to_i : 1).per(15)
|
7
|
-
end
|
8
|
-
|
9
|
-
def new
|
10
|
-
@meta_title = @title = "#{t('dash.grid.create')} #{Photo.model_name.human}"
|
11
|
-
@photo = Photo.new
|
12
|
-
render :form
|
13
|
-
end
|
14
|
-
|
15
|
-
def create
|
16
|
-
@meta_title = @title = "#{t('dash.grid.create')} #{Photo.model_name.human}"
|
17
|
-
@photo = Photo.new(params[:photo])
|
18
|
-
if @photo.save
|
19
|
-
redirect_with_flash dash_photos_path, :success, t('dash.flash.success.create'), params
|
20
|
-
else
|
21
|
-
flash_errors @photo
|
22
|
-
render :form
|
23
|
-
end
|
24
|
-
end
|
25
|
-
|
26
|
-
def show
|
27
|
-
@meta_title = @title = "#{t('dash.grid.update')} #{Photo.model_name.human}"
|
28
|
-
@photo = Photo.find(params[:id])
|
29
|
-
render :form
|
30
|
-
end
|
31
|
-
|
32
|
-
def update
|
33
|
-
@meta_title = @title = "#{t('dash.grid.update')} #{Photo.model_name.human}"
|
34
|
-
@photo = Photo.find(params[:id])
|
35
|
-
if @photo.update_attributes(params[:photo])
|
36
|
-
redirect_with_flash dash_photos_path, :success, t('dash.flash.success.update'), params
|
37
|
-
else
|
38
|
-
flash_errors @photo
|
39
|
-
render :form
|
40
|
-
end
|
41
|
-
end
|
42
|
-
|
43
|
-
def destroy
|
44
|
-
Photo.destroy params[:id]
|
45
|
-
redirect_with_flash dash_photos_path, :success, t('dash.flash.success.destroy')
|
46
|
-
end
|
47
|
-
|
48
|
-
end
|
49
|
-
end
|
@@ -1,19 +0,0 @@
|
|
1
|
-
<%= header new_dash_photo_path %>
|
2
|
-
<table cellpadding="0" cellspacing="0">
|
3
|
-
<tr>
|
4
|
-
<th>#</th>
|
5
|
-
<th><%= Photo.human_attribute_name :created_at %></th>
|
6
|
-
<th class="actions"><%= t 'dash.grid.actions' %></th>
|
7
|
-
</tr>
|
8
|
-
<% @photos.each do |photo| %>
|
9
|
-
<tr>
|
10
|
-
<td><%= photo.id %></td>
|
11
|
-
<td><%= l photo.created_at %></td>
|
12
|
-
<td class="actions">
|
13
|
-
<%= link_to t('dash.grid.update'), [:dash, photo] %>
|
14
|
-
<%= link_to t('dash.grid.destroy'), [:dash, photo], method: 'delete' %>
|
15
|
-
</td>
|
16
|
-
</tr>
|
17
|
-
<% end %>
|
18
|
-
</table>
|
19
|
-
<%= pager @photos %>
|
@@ -1,49 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html lang="<%= I18n.locale %>">
|
3
|
-
<head>
|
4
|
-
<title><%= @meta_title %></title>
|
5
|
-
<meta charset="utf-8" />
|
6
|
-
<%= google_fonts_link_tag 'Armata' %>
|
7
|
-
<%= stylesheet_link_tag 'rails_dash', :media => 'all' %>
|
8
|
-
<%= javascript_include_tag 'application' %>
|
9
|
-
<%= csrf_meta_tags %>
|
10
|
-
</head>
|
11
|
-
<body>
|
12
|
-
<div id="page">
|
13
|
-
<div id="navigation">
|
14
|
-
<div class="holder">
|
15
|
-
<ul id="menu">
|
16
|
-
<li><%= link_to t('dash.menu.home'), '#' %></li>
|
17
|
-
</ul>
|
18
|
-
<div id="session">
|
19
|
-
<%= link_to t('dash.session.logout'), '#', :class => 'button' %>
|
20
|
-
</div>
|
21
|
-
</div>
|
22
|
-
</div>
|
23
|
-
<% if @title.present? %>
|
24
|
-
<div id="header">
|
25
|
-
<div class="holder">
|
26
|
-
<h1><%= @title %></h1>
|
27
|
-
</div>
|
28
|
-
</div>
|
29
|
-
<% end %>
|
30
|
-
<% unless flash.empty? %>
|
31
|
-
<div id="flash" class="flash holder">
|
32
|
-
<% [:error, :success].each do |type| %>
|
33
|
-
<% if flash.key? type %>
|
34
|
-
<% flash[type].each do |message| %>
|
35
|
-
<p class="<%= type %>"><%= message.capitalize %></p>
|
36
|
-
<% end %>
|
37
|
-
<% end %>
|
38
|
-
<% end %>
|
39
|
-
</div>
|
40
|
-
<% end %>
|
41
|
-
<div id="content" class="holder"><%= yield %></div>
|
42
|
-
</div>
|
43
|
-
<div id="footer">
|
44
|
-
<div class="holder">
|
45
|
-
<p id="copyright"><%= t 'dash.footer.copyright', :year => Time.now.year %></p>
|
46
|
-
</div>
|
47
|
-
</div>
|
48
|
-
</body>
|
49
|
-
</html>
|
data/test/dummy/config.ru
DELETED
@@ -1,63 +0,0 @@
|
|
1
|
-
require File.expand_path('../boot', __FILE__)
|
2
|
-
|
3
|
-
require 'rails/all'
|
4
|
-
|
5
|
-
Bundler.require(*Rails.groups)
|
6
|
-
require 'rails_dash'
|
7
|
-
require 'rails_contrib'
|
8
|
-
require 'rails_pagination'
|
9
|
-
require 'fonts-rails'
|
10
|
-
require 'sass-rails'
|
11
|
-
|
12
|
-
module Dummy
|
13
|
-
class Application < Rails::Application
|
14
|
-
# Settings in config/environments/* take precedence over those specified here.
|
15
|
-
# Application configuration should go into files in config/initializers
|
16
|
-
# -- all .rb files in that directory are automatically loaded.
|
17
|
-
|
18
|
-
# Custom directories with classes and modules you want to be autoloadable.
|
19
|
-
# config.autoload_paths += %W(#{config.root}/extras)
|
20
|
-
|
21
|
-
# Only load the plugins named here, in the order given (default is alphabetical).
|
22
|
-
# :all can be used as a placeholder for all plugins not explicitly named.
|
23
|
-
# config.plugins = [ :exception_notification, :ssl_requirement, :all ]
|
24
|
-
|
25
|
-
# Activate observers that should always be running.
|
26
|
-
# config.active_record.observers = :cacher, :garbage_collector, :forum_observer
|
27
|
-
|
28
|
-
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
|
29
|
-
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
|
30
|
-
# config.time_zone = 'Central Time (US & Canada)'
|
31
|
-
|
32
|
-
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
33
|
-
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
34
|
-
# config.i18n.default_locale = :es
|
35
|
-
|
36
|
-
# Configure the default encoding used in templates for Ruby 1.9.
|
37
|
-
config.encoding = "utf-8"
|
38
|
-
|
39
|
-
# Configure sensitive parameters which will be filtered from the log file.
|
40
|
-
config.filter_parameters += [:password]
|
41
|
-
|
42
|
-
# Enable escaping HTML in JSON.
|
43
|
-
config.active_support.escape_html_entities_in_json = true
|
44
|
-
|
45
|
-
# Use SQL instead of Active Record's schema dumper when creating the database.
|
46
|
-
# This is necessary if your schema can't be completely dumped by the schema dumper,
|
47
|
-
# like if you have constraints or database-specific column types
|
48
|
-
# config.active_record.schema_format = :sql
|
49
|
-
|
50
|
-
# Enforce whitelist mode for mass assignment.
|
51
|
-
# This will create an empty whitelist of attributes available for mass-assignment for all models
|
52
|
-
# in your app. As such, your models will need to explicitly whitelist or blacklist accessible
|
53
|
-
# parameters by using an attr_accessible or attr_protected declaration.
|
54
|
-
config.active_record.whitelist_attributes = true
|
55
|
-
|
56
|
-
# Enable the asset pipeline
|
57
|
-
config.assets.enabled = true
|
58
|
-
|
59
|
-
# Version of your assets, change this if you want to expire all your assets
|
60
|
-
config.assets.version = '1.0'
|
61
|
-
end
|
62
|
-
end
|
63
|
-
|
data/test/dummy/config/boot.rb
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
# SQLite version 3.x
|
2
|
-
# gem install sqlite3
|
3
|
-
#
|
4
|
-
# Ensure the SQLite 3 gem is defined in your Gemfile
|
5
|
-
# gem 'sqlite3'
|
6
|
-
development:
|
7
|
-
adapter: sqlite3
|
8
|
-
database: db/development.sqlite3
|
9
|
-
pool: 5
|
10
|
-
timeout: 5000
|
11
|
-
|
12
|
-
# Warning: The database defined as "test" will be erased and
|
13
|
-
# re-generated from your development database when you run "rake".
|
14
|
-
# Do not set this db to the same as development or production.
|
15
|
-
test:
|
16
|
-
adapter: sqlite3
|
17
|
-
database: ":memory:"
|
18
|
-
pool: 5
|
19
|
-
timeout: 5000
|
20
|
-
|
21
|
-
production:
|
22
|
-
adapter: sqlite3
|
23
|
-
database: db/production.sqlite3
|
24
|
-
pool: 5
|
25
|
-
timeout: 5000
|
@@ -1,37 +0,0 @@
|
|
1
|
-
Dummy::Application.configure do
|
2
|
-
# Settings specified here will take precedence over those in config/application.rb
|
3
|
-
|
4
|
-
# In the development environment your application's code is reloaded on
|
5
|
-
# every request. This slows down response time but is perfect for development
|
6
|
-
# since you don't have to restart the web server when you make code changes.
|
7
|
-
config.cache_classes = false
|
8
|
-
|
9
|
-
# Log error messages when you accidentally call methods on nil.
|
10
|
-
config.whiny_nils = true
|
11
|
-
|
12
|
-
# Show full error reports and disable caching
|
13
|
-
config.consider_all_requests_local = true
|
14
|
-
config.action_controller.perform_caching = false
|
15
|
-
|
16
|
-
# Don't care if the mailer can't send
|
17
|
-
config.action_mailer.raise_delivery_errors = false
|
18
|
-
|
19
|
-
# Print deprecation notices to the Rails logger
|
20
|
-
config.active_support.deprecation = :log
|
21
|
-
|
22
|
-
# Only use best-standards-support built into browsers
|
23
|
-
config.action_dispatch.best_standards_support = :builtin
|
24
|
-
|
25
|
-
# Raise exception on mass assignment protection for Active Record models
|
26
|
-
config.active_record.mass_assignment_sanitizer = :strict
|
27
|
-
|
28
|
-
# Log the query plan for queries taking more than this (works
|
29
|
-
# with SQLite, MySQL, and PostgreSQL)
|
30
|
-
config.active_record.auto_explain_threshold_in_seconds = 0.5
|
31
|
-
|
32
|
-
# Do not compress assets
|
33
|
-
config.assets.compress = false
|
34
|
-
|
35
|
-
# Expands the lines which load the assets
|
36
|
-
config.assets.debug = true
|
37
|
-
end
|
@@ -1,67 +0,0 @@
|
|
1
|
-
Dummy::Application.configure do
|
2
|
-
# Settings specified here will take precedence over those in config/application.rb
|
3
|
-
|
4
|
-
# Code is not reloaded between requests
|
5
|
-
config.cache_classes = true
|
6
|
-
|
7
|
-
# Full error reports are disabled and caching is turned on
|
8
|
-
config.consider_all_requests_local = false
|
9
|
-
config.action_controller.perform_caching = true
|
10
|
-
|
11
|
-
# Disable Rails's static asset server (Apache or nginx will already do this)
|
12
|
-
config.serve_static_assets = false
|
13
|
-
|
14
|
-
# Compress JavaScripts and CSS
|
15
|
-
config.assets.compress = true
|
16
|
-
|
17
|
-
# Don't fallback to assets pipeline if a precompiled asset is missed
|
18
|
-
config.assets.compile = false
|
19
|
-
|
20
|
-
# Generate digests for assets URLs
|
21
|
-
config.assets.digest = true
|
22
|
-
|
23
|
-
# Defaults to nil and saved in location specified by config.assets.prefix
|
24
|
-
# config.assets.manifest = YOUR_PATH
|
25
|
-
|
26
|
-
# Specifies the header that your server uses for sending files
|
27
|
-
# config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
|
28
|
-
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
|
29
|
-
|
30
|
-
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
|
31
|
-
# config.force_ssl = true
|
32
|
-
|
33
|
-
# See everything in the log (default is :info)
|
34
|
-
# config.log_level = :debug
|
35
|
-
|
36
|
-
# Prepend all log lines with the following tags
|
37
|
-
# config.log_tags = [ :subdomain, :uuid ]
|
38
|
-
|
39
|
-
# Use a different logger for distributed setups
|
40
|
-
# config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
|
41
|
-
|
42
|
-
# Use a different cache store in production
|
43
|
-
# config.cache_store = :mem_cache_store
|
44
|
-
|
45
|
-
# Enable serving of images, stylesheets, and JavaScripts from an asset server
|
46
|
-
# config.action_controller.asset_host = "http://assets.example.com"
|
47
|
-
|
48
|
-
# Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
|
49
|
-
# config.assets.precompile += %w( search.js )
|
50
|
-
|
51
|
-
# Disable delivery errors, bad email addresses will be ignored
|
52
|
-
# config.action_mailer.raise_delivery_errors = false
|
53
|
-
|
54
|
-
# Enable threaded mode
|
55
|
-
# config.threadsafe!
|
56
|
-
|
57
|
-
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
58
|
-
# the I18n.default_locale when a translation can not be found)
|
59
|
-
config.i18n.fallbacks = true
|
60
|
-
|
61
|
-
# Send deprecation notices to registered listeners
|
62
|
-
config.active_support.deprecation = :notify
|
63
|
-
|
64
|
-
# Log the query plan for queries taking more than this (works
|
65
|
-
# with SQLite, MySQL, and PostgreSQL)
|
66
|
-
# config.active_record.auto_explain_threshold_in_seconds = 0.5
|
67
|
-
end
|