This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Raven.configure do |config| | |
config.sanitize_fields = Rails.application.config.filter_parameters.map(&:to_s) | |
config.dsn = ENV['SENTRY_DSN'] unless Rails.env.development? || Rails.env.test? | |
config.environments = %w(sandbox staging demo production) | |
config.silence_ready = true | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gem 'active_model_serializers' | |
gem 'activeadmin' | |
gem 'jquery-ui-rails' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create a states table with an index on the abbreviation, | |
# then create the 50 states plus Washington, DC | |
class CreateStates < ActiveRecord::Migration | |
def change | |
create_table :states do |t| | |
t.string :name, null: false | |
t.string :abbr, null: false | |
t.timestamps null: false | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Protect files and directories | |
<FilesMatch "(\.(engine|inc|info|install|module|profile|po|sh|.*sql|theme|tpl(\.php)? |xtmpl)|code-style\.pl|Entries.*|Repository|Root|Tag|Template)$"> | |
Order allow,deny | |
</FilesMatch> | |
# Don’t show directory listings | |
Options -Indexes | |
# Basic rewrite rules, stop unneeded PERL bot, block subversion directories | |
<IfModule mod_rewrite.c> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class AddStatesVisitedToPeople < ActiveRecord::Migration | |
def change | |
add_column :people, :states_visited, :text, array: true, :default => [] | |
end | |
end |