raygun 0.0.11 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +3 -3
- data/.rbenv-version +1 -1
- data/README.md +2 -9
- data/Rakefile +1 -1
- data/TODO.md +0 -5
- data/app_prototype/.gitignore +15 -0
- data/app_prototype/.rspec +1 -0
- data/app_prototype/.rvmrc +1 -0
- data/{templates/Gemfile_customized → app_prototype/Gemfile} +1 -0
- data/{templates/Guardfile_customized → app_prototype/Guardfile} +6 -0
- data/{templates → app_prototype}/Procfile +0 -0
- data/{templates/README.md.erb → app_prototype/README.md} +0 -0
- data/app_prototype/Rakefile +10 -0
- data/app_prototype/app/assets/javascripts/application.js +16 -0
- data/app_prototype/app/assets/javascripts/users.js.coffee +3 -0
- data/{templates/_app → app_prototype/app}/assets/stylesheets/_footer.less +0 -0
- data/{templates/_app → app_prototype/app}/assets/stylesheets/application.css.less +0 -0
- data/{templates/_app → app_prototype/app}/controllers/application_controller.rb +1 -0
- data/{templates/_app → app_prototype/app}/controllers/password_resets_controller.rb +0 -0
- data/{templates/_app → app_prototype/app}/controllers/registrations_controller.rb +2 -0
- data/{templates/_app → app_prototype/app}/controllers/user_sessions_controller.rb +1 -1
- data/app_prototype/app/controllers/users_controller.rb +41 -0
- data/{templates/_app → app_prototype/app}/helpers/application_helper.rb +0 -0
- data/app_prototype/app/helpers/users_helper.rb +2 -0
- data/app_prototype/app/mailers/.gitkeep +0 -0
- data/{templates/_app → app_prototype/app}/mailers/user_mailer.rb +0 -0
- data/app_prototype/app/models/.gitkeep +0 -0
- data/{templates/_app → app_prototype/app}/models/ability.rb +0 -0
- data/{templates/_app → app_prototype/app}/models/user.rb +0 -0
- data/{templates/_app → app_prototype/app}/models/user_session.rb +0 -0
- data/{templates/_app/views/layouts/application.html.slim.erb → app_prototype/app/views/layouts/application.html.slim} +2 -2
- data/{templates/_app → app_prototype/app}/views/password_resets/edit.html.slim +0 -0
- data/{templates/_app → app_prototype/app}/views/password_resets/new.html.slim +0 -0
- data/{templates/_app → app_prototype/app}/views/registrations/new.html.slim +0 -0
- data/{templates/_app → app_prototype/app}/views/user_mailer/activation_needed_email.html.erb +0 -0
- data/{templates/_app → app_prototype/app}/views/user_mailer/activation_needed_email.text.erb +0 -0
- data/{templates/_app → app_prototype/app}/views/user_mailer/activation_success_email.html.erb +0 -0
- data/{templates/_app → app_prototype/app}/views/user_mailer/activation_success_email.text.erb +0 -0
- data/{templates/_app → app_prototype/app}/views/user_mailer/reset_password_email.html.erb +0 -0
- data/{templates/_app → app_prototype/app}/views/user_mailer/reset_password_email.text.erb +0 -0
- data/{templates/_app → app_prototype/app}/views/user_sessions/new.html.slim +0 -0
- data/app_prototype/app/views/users/_form.html.slim +12 -0
- data/app_prototype/app/views/users/edit.html.slim +5 -0
- data/app_prototype/app/views/users/index.html.slim +26 -0
- data/app_prototype/app/views/users/new.html.slim +4 -0
- data/app_prototype/app/views/users/show.html.slim +17 -0
- data/app_prototype/config.ru +8 -0
- data/app_prototype/config/application.rb +77 -0
- data/app_prototype/config/boot.rb +6 -0
- data/{templates/_config/database.yml.erb → app_prototype/config/database.yml} +2 -2
- data/app_prototype/config/environment.rb +5 -0
- data/app_prototype/config/environments/acceptance.rb +69 -0
- data/app_prototype/config/environments/development.rb +39 -0
- data/app_prototype/config/environments/production.rb +69 -0
- data/app_prototype/config/environments/test.rb +40 -0
- data/app_prototype/config/initializers/backtrace_silencers.rb +7 -0
- data/app_prototype/config/initializers/inflections.rb +15 -0
- data/app_prototype/config/initializers/mime_types.rb +5 -0
- data/app_prototype/config/initializers/secret_token.rb +7 -0
- data/app_prototype/config/initializers/session_store.rb +8 -0
- data/app_prototype/config/initializers/simple_form.rb +142 -0
- data/app_prototype/config/initializers/simple_form_bootstrap.rb +45 -0
- data/app_prototype/config/initializers/sorcery.rb +398 -0
- data/app_prototype/config/initializers/wrap_parameters.rb +14 -0
- data/app_prototype/config/locales/en.yml +5 -0
- data/app_prototype/config/locales/simple_form.en.yml +26 -0
- data/app_prototype/config/routes.rb +21 -0
- data/app_prototype/db/migrate/20121128215324_sorcery_core.rb +17 -0
- data/app_prototype/db/migrate/20121128215325_sorcery_brute_force_protection.rb +13 -0
- data/app_prototype/db/migrate/20121128215326_sorcery_activity_logging.rb +17 -0
- data/app_prototype/db/migrate/20121128215327_sorcery_user_activation.rb +17 -0
- data/app_prototype/db/migrate/20121128215328_sorcery_remember_me.rb +15 -0
- data/app_prototype/db/migrate/20121128215329_sorcery_reset_password.rb +17 -0
- data/app_prototype/db/migrate/20121128215330_sorcery_external.rb +14 -0
- data/app_prototype/db/migrate/20121128215337_add_admin_to_users.rb +5 -0
- data/{templates/_db → app_prototype/db}/sample_data.rb +0 -0
- data/app_prototype/db/schema.rb +53 -0
- data/app_prototype/db/seeds.rb +7 -0
- data/app_prototype/lib/assets/.gitkeep +0 -0
- data/app_prototype/lib/tasks/.gitkeep +0 -0
- data/{templates/_lib → app_prototype/lib}/tasks/coverage.rake +0 -0
- data/{templates/_lib → app_prototype/lib}/tasks/db.rake +0 -0
- data/{templates/_lib → app_prototype/lib}/tasks/spec.rake +0 -0
- data/{templates/_lib → app_prototype/lib}/templates/rails/scaffold_controller/controller.rb +0 -0
- data/{templates/_lib → app_prototype/lib}/templates/rspec/scaffold/controller_spec.rb +1 -1
- data/{templates/_lib → app_prototype/lib}/templates/slim/scaffold/_form.html.slim +0 -0
- data/{templates/_lib → app_prototype/lib}/templates/slim/scaffold/edit.html.slim +0 -0
- data/{templates/_lib → app_prototype/lib}/templates/slim/scaffold/index.html.slim +0 -0
- data/{templates/_lib → app_prototype/lib}/templates/slim/scaffold/new.html.slim +0 -0
- data/{templates/_lib → app_prototype/lib}/templates/slim/scaffold/show.html.slim +0 -0
- data/app_prototype/log/.gitkeep +0 -0
- data/app_prototype/public/404.html +26 -0
- data/app_prototype/public/422.html +26 -0
- data/app_prototype/public/500.html +25 -0
- data/app_prototype/public/favicon.ico +0 -0
- data/{templates/_public/index.html.erb → app_prototype/public/index.html} +2 -2
- data/app_prototype/public/robots.txt +5 -0
- data/app_prototype/script/rails +6 -0
- data/app_prototype/spec/controllers/user_sessions_controller_spec.rb +42 -0
- data/app_prototype/spec/controllers/users_controller_spec.rb +150 -0
- data/{templates/_spec → app_prototype/spec}/factories/users.rb +0 -0
- data/{templates/_spec → app_prototype/spec}/features/user_sessions_spec.rb +5 -1
- data/app_prototype/spec/helpers/users_helper_spec.rb +15 -0
- data/{templates/_spec → app_prototype/spec}/javascripts/example_spec.js.coffee +0 -0
- data/{templates/_spec → app_prototype/spec}/javascripts/spec.css +0 -0
- data/{templates/_spec → app_prototype/spec}/javascripts/spec.js.coffee +0 -0
- data/{templates/_spec → app_prototype/spec}/mailers/user_mailer_spec.rb +0 -0
- data/{templates/_spec → app_prototype/spec}/models/ability_spec.rb +0 -0
- data/{templates/_spec → app_prototype/spec}/models/user_spec.rb +0 -0
- data/app_prototype/spec/spec_helper.rb +84 -0
- data/{templates/_spec → app_prototype/spec}/support/accept_values.rb +0 -0
- data/{templates/_spec → app_prototype/spec}/support/factory_girl.rb +0 -0
- data/{templates/_spec → app_prototype/spec}/support/sorcery.rb +0 -0
- data/{templates/_spec → app_prototype/spec}/support/user_sessions_feature_helper.rb +0 -0
- data/app_prototype/spec/views/users/edit.html.slim_spec.rb +20 -0
- data/app_prototype/spec/views/users/index.html.slim_spec.rb +23 -0
- data/app_prototype/spec/views/users/new.html.slim_spec.rb +20 -0
- data/app_prototype/spec/views/users/show.html.slim_spec.rb +17 -0
- data/app_prototype/vendor/assets/javascripts/.gitkeep +0 -0
- data/app_prototype/vendor/assets/stylesheets/.gitkeep +0 -0
- data/app_prototype/vendor/plugins/.gitkeep +0 -0
- data/bin/raygun +48 -6
- data/lib/raygun/version.rb +1 -1
- data/raygun.gemspec +0 -3
- metadata +118 -108
- data/lib/raygun/actions.rb +0 -26
- data/lib/raygun/app_builder.rb +0 -362
- data/lib/raygun/generators/app_generator.rb +0 -188
- data/lib/raygun/helpers/ruby_version_helpers.rb +0 -52
- data/lib/raygun/raygun.rb +0 -11
- data/templates/rbenv-version.erb +0 -1
- data/templates/rvmrc.erb +0 -1
data/.gitignore
CHANGED
data/.rbenv-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.9.3-p327
|
1
|
+
1.9.3-p327
|
data/README.md
CHANGED
@@ -52,9 +52,10 @@ Be sure you met these requirements before using raygun, otherwise you won't make
|
|
52
52
|
Once your project is baked out, you can easily kick the wheels:
|
53
53
|
|
54
54
|
$ cd your-project
|
55
|
+
$ bundle update
|
55
56
|
|
56
57
|
# Prepare the database: schema and reference / sample data
|
57
|
-
$ rake db:
|
58
|
+
$ rake db:setup db:sample_data
|
58
59
|
|
59
60
|
# Run the specs
|
60
61
|
$ rake
|
@@ -76,11 +77,3 @@ Once your project is baked out, you can easily kick the wheels:
|
|
76
77
|
Generate an example app using your local development version of raygun
|
77
78
|
|
78
79
|
./bin/raygun tmp/example_app
|
79
|
-
|
80
|
-
### Customizing the generated Rails app
|
81
|
-
|
82
|
-
Changes which can be applied on top of an existing Rails app should be added as `foo_template.rb` files
|
83
|
-
in `raygun/generators/foo/`.
|
84
|
-
|
85
|
-
Changes which must be performed during the creation of the Rails app should be added to `lib/raygun/app_builder.rb`
|
86
|
-
and called from an appropriate step in `lib/raygun/generators/app_generator.rb`.
|
data/Rakefile
CHANGED
@@ -1 +1 @@
|
|
1
|
-
require
|
1
|
+
require 'bundler/gem_tasks'
|
data/TODO.md
CHANGED
@@ -2,21 +2,16 @@
|
|
2
2
|
|
3
3
|
Looking for inspiration? Here are some ideas for things that still could be done. Don't forget to check the open issus too.
|
4
4
|
|
5
|
-
* Cleanup/refactor raygun code (a few simple helpers would help out a whole lot)
|
6
5
|
* Automated testing of raygun (e.g. generate an app and run its specs?)
|
7
6
|
* Raygun on CI
|
8
|
-
* Add the concept of an admin / super user
|
9
7
|
* Invite user flow
|
10
|
-
* Use cancan to restrict access to /users to an admin
|
11
8
|
* Use cancan to allow users to edit only themselves and admins to edit any user
|
12
9
|
* Continue to improve bootstrap view templates
|
13
10
|
* CSS/less best practices for file organization
|
14
11
|
* JS/coffeescript best practices
|
15
12
|
* Add pagination to the default index scaffold (kaminari)
|
16
|
-
* JS testing
|
17
13
|
* Use foreigner for database constraints
|
18
14
|
* Fast tests best practices
|
19
|
-
* Use guard (rspec, livereload, js testing, etc)
|
20
15
|
* Paperclip + S3 configuration
|
21
16
|
* Application monitoring
|
22
17
|
* Analytics
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# See http://help.github.com/ignore-files/ for more about ignoring files.
|
2
|
+
#
|
3
|
+
# If you find yourself ignoring temporary files generated by your text editor
|
4
|
+
# or operating system, you probably want to add a global ignore instead:
|
5
|
+
# git config --global core.excludesfile ~/.gitignore_global
|
6
|
+
|
7
|
+
# Ignore bundler config
|
8
|
+
/.bundle
|
9
|
+
|
10
|
+
# Ignore the default SQLite database.
|
11
|
+
/db/*.sqlite3
|
12
|
+
|
13
|
+
# Ignore all logfiles and tempfiles.
|
14
|
+
/log/*.log
|
15
|
+
/tmp
|
@@ -0,0 +1 @@
|
|
1
|
+
--color
|
@@ -0,0 +1 @@
|
|
1
|
+
rvm use ruby-1.9.3-p327@app_prototype --create
|
@@ -16,3 +16,9 @@ guard 'rspec' do
|
|
16
16
|
# Capybara request specs
|
17
17
|
watch(%r{^app/views/(.+)/.*(\.slim)$}) { |m| "spec/requests/#{m[1]}_spec.rb" }
|
18
18
|
end
|
19
|
+
|
20
|
+
guard :jasmine do
|
21
|
+
watch(%r{spec/javascripts/spec\.(js\.coffee|js|coffee)$}) { 'spec/javascripts' }
|
22
|
+
watch(%r{spec/javascripts/.+_spec\.(js\.coffee|js|coffee)$})
|
23
|
+
watch(%r{app/assets/javascripts/(.+?)\.(js\.coffee|js|coffee)(?:\.\w+)*$}) { |m| "spec/javascripts/#{ m[1] }_spec.#{ m[2] }" }
|
24
|
+
end
|
File without changes
|
File without changes
|
@@ -0,0 +1,10 @@
|
|
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
|
+
AppPrototype::Application.load_tasks
|
8
|
+
|
9
|
+
task(:default).clear
|
10
|
+
task default: 'spec'
|
@@ -0,0 +1,16 @@
|
|
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 twitter/bootstrap
|
16
|
+
//= require_tree .
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,41 @@
|
|
1
|
+
class UsersController < ApplicationController
|
2
|
+
|
3
|
+
before_filter :require_login
|
4
|
+
|
5
|
+
load_and_authorize_resource
|
6
|
+
|
7
|
+
def index
|
8
|
+
end
|
9
|
+
|
10
|
+
def show
|
11
|
+
end
|
12
|
+
|
13
|
+
def new
|
14
|
+
end
|
15
|
+
|
16
|
+
def edit
|
17
|
+
end
|
18
|
+
|
19
|
+
def create
|
20
|
+
@user = User.new(params[:user])
|
21
|
+
|
22
|
+
if @user.save
|
23
|
+
redirect_to @user, notice: 'User was successfully created.'
|
24
|
+
else
|
25
|
+
render action: "new"
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
def update
|
30
|
+
if @user.update_attributes(params[:user])
|
31
|
+
redirect_to @user, notice: 'User was successfully updated.'
|
32
|
+
else
|
33
|
+
render action: "edit"
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
def destroy
|
38
|
+
@user.destroy
|
39
|
+
redirect_to users_url
|
40
|
+
end
|
41
|
+
end
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -1,7 +1,7 @@
|
|
1
1
|
doctype 5
|
2
2
|
html
|
3
3
|
head
|
4
|
-
title
|
4
|
+
title App Prototype
|
5
5
|
= stylesheet_link_tag 'application', media: 'all'
|
6
6
|
= javascript_include_tag 'application'
|
7
7
|
= csrf_meta_tag
|
@@ -12,7 +12,7 @@ html
|
|
12
12
|
header.navbar.navbar-fixed-top
|
13
13
|
nav.navbar-inner
|
14
14
|
.container
|
15
|
-
.brand
|
15
|
+
.brand App Prototype
|
16
16
|
ul.nav.pull-right
|
17
17
|
- if current_user
|
18
18
|
li.dropdown
|
File without changes
|
File without changes
|
File without changes
|
data/{templates/_app → app_prototype/app}/views/user_mailer/activation_needed_email.html.erb
RENAMED
File without changes
|
data/{templates/_app → app_prototype/app}/views/user_mailer/activation_needed_email.text.erb
RENAMED
File without changes
|
data/{templates/_app → app_prototype/app}/views/user_mailer/activation_success_email.html.erb
RENAMED
File without changes
|
data/{templates/_app → app_prototype/app}/views/user_mailer/activation_success_email.text.erb
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,26 @@
|
|
1
|
+
div.page-header
|
2
|
+
h1 Listing users
|
3
|
+
|
4
|
+
table.table.table-striped
|
5
|
+
thead
|
6
|
+
tr
|
7
|
+
th ID
|
8
|
+
th Email
|
9
|
+
th Name
|
10
|
+
th Actions
|
11
|
+
|
12
|
+
tbody
|
13
|
+
- @users.each do |user|
|
14
|
+
tr
|
15
|
+
td= link_to_if can?(:show, user), user.id, user_path(user)
|
16
|
+
td= user.email
|
17
|
+
td= user.name
|
18
|
+
td
|
19
|
+
- if can? :edit, user
|
20
|
+
= link_to 'Edit', edit_user_path(user), class: 'btn btn-mini'
|
21
|
+
'
|
22
|
+
- if can? :destroy, user
|
23
|
+
= link_to 'Destroy', user_path(user), method: :delete, data: { confirm: "Are you sure?" }, class: 'btn btn-mini btn-danger'
|
24
|
+
|
25
|
+
- if can? :create, User
|
26
|
+
= link_to 'New User', new_user_path, class: 'btn btn-primary'
|
@@ -0,0 +1,17 @@
|
|
1
|
+
.page-header
|
2
|
+
h1 User
|
3
|
+
|
4
|
+
dl
|
5
|
+
dt Email
|
6
|
+
dd= @user.email
|
7
|
+
dt Name
|
8
|
+
dd= @user.name
|
9
|
+
|
10
|
+
- if can?(:edit, @user)
|
11
|
+
= link_to 'Edit', edit_user_path(@user), class: 'btn'
|
12
|
+
'
|
13
|
+
= link_to 'Back', users_path, class: 'btn'
|
14
|
+
|
15
|
+
- if can?(:destroy, @user)
|
16
|
+
'
|
17
|
+
= link_to'Destroy', user_path(@user), method: :delete, data: { confirm: "Are you sure?" }, class: 'btn btn-danger'
|
@@ -0,0 +1,77 @@
|
|
1
|
+
require File.expand_path('../boot', __FILE__)
|
2
|
+
|
3
|
+
# Pick the frameworks you want:
|
4
|
+
require "active_record/railtie"
|
5
|
+
require "action_controller/railtie"
|
6
|
+
require "action_mailer/railtie"
|
7
|
+
require "active_resource/railtie"
|
8
|
+
require "sprockets/railtie"
|
9
|
+
# require "rails/test_unit/railtie"
|
10
|
+
|
11
|
+
if defined?(Bundler)
|
12
|
+
# If you precompile assets before deploying to production, use this line
|
13
|
+
Bundler.require(*Rails.groups(assets: %w(development test)))
|
14
|
+
# If you want your assets lazily compiled in production, use this line
|
15
|
+
# Bundler.require(:default, :assets, Rails.env)
|
16
|
+
end
|
17
|
+
|
18
|
+
module AppPrototype
|
19
|
+
class Application < Rails::Application
|
20
|
+
|
21
|
+
config.generators do |generate|
|
22
|
+
generate.stylesheets false
|
23
|
+
#generate.helper false
|
24
|
+
generate.routing_specs false
|
25
|
+
#generate.view_specs false
|
26
|
+
end
|
27
|
+
|
28
|
+
# Settings in config/environments/* take precedence over those specified here.
|
29
|
+
# Application configuration should go into files in config/initializers
|
30
|
+
# -- all .rb files in that directory are automatically loaded.
|
31
|
+
|
32
|
+
# Custom directories with classes and modules you want to be autoloadable.
|
33
|
+
config.autoload_paths += %W(#{config.root}/lib)
|
34
|
+
|
35
|
+
# Only load the plugins named here, in the order given (default is alphabetical).
|
36
|
+
# :all can be used as a placeholder for all plugins not explicitly named.
|
37
|
+
# config.plugins = [ :exception_notification, :ssl_requirement, :all ]
|
38
|
+
|
39
|
+
# Activate observers that should always be running.
|
40
|
+
# config.active_record.observers = :cacher, :garbage_collector, :forum_observer
|
41
|
+
|
42
|
+
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
|
43
|
+
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
|
44
|
+
# config.time_zone = 'Pacific Time (US & Canada)'
|
45
|
+
|
46
|
+
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
47
|
+
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
48
|
+
# config.i18n.default_locale = :de
|
49
|
+
|
50
|
+
# Configure the default encoding used in templates for Ruby 1.9.
|
51
|
+
config.encoding = 'utf-8'
|
52
|
+
|
53
|
+
# Configure sensitive parameters which will be filtered from the log file.
|
54
|
+
config.filter_parameters += [:password]
|
55
|
+
|
56
|
+
# Enable escaping HTML in JSON.
|
57
|
+
config.active_support.escape_html_entities_in_json = true
|
58
|
+
|
59
|
+
# Use SQL instead of Active Record's schema dumper when creating the database.
|
60
|
+
# This is necessary if your schema can't be completely dumped by the schema dumper,
|
61
|
+
# like if you have constraints or database-specific column types
|
62
|
+
# config.active_record.schema_format = :sql
|
63
|
+
|
64
|
+
# Enforce whitelist mode for mass assignment.
|
65
|
+
# This will create an empty whitelist of attributes available for mass-assignment for all models
|
66
|
+
# in your app. As such, your models will need to explicitly whitelist or blacklist accessible
|
67
|
+
# parameters by using an attr_accessible or attr_protected declaration.
|
68
|
+
config.active_record.whitelist_attributes = true
|
69
|
+
|
70
|
+
# Enable the asset pipeline
|
71
|
+
config.assets.enabled = true
|
72
|
+
config.assets.initialize_on_precompile = false
|
73
|
+
|
74
|
+
# Version of your assets, change this if you want to expire all your assets
|
75
|
+
config.assets.version = '1.0'
|
76
|
+
end
|
77
|
+
end
|