- 'script/locale/reload-languages'
- 'script/update-spam-blocks'
+Style/HashSyntax:
+ EnforcedStyle: hash_rockets
+ Exclude:
+ - 'lib/tasks/testing.rake'
+ - 'config/initializers/wrap_parameters.rb'
+
Style/StringLiterals:
EnforcedStyle: double_quotes
Style/GuardClause:
Enabled: false
-# Offense count: 5687
-# Cop supports --auto-correct.
-# Configuration parameters: EnforcedStyle, SupportedStyles.
-Style/HashSyntax:
- Enabled: false
-
# Offense count: 60
# Cop supports --auto-correct.
Style/LineEndConcatenation:
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
# port forward for webrick on 3000
- config.vm.network :forwarded_port, guest: 3000, host: 3000
+ config.vm.network :forwarded_port, :guest => 3000, :host => 3000
# set up synced folder to source in /srv/openstreetmap-website
config.vm.synced_folder ".", "/srv/openstreetmap-website"
class AddJoinTableBetweenUsersAndChangesets < ActiveRecord::Migration
def change
- create_table :changesets_subscribers, id: false do |t|
- t.column :subscriber_id, :bigint, null: false
- t.column :changeset_id, :bigint, null: false
+ create_table :changesets_subscribers, :id => false do |t|
+ t.column :subscriber_id, :bigint, :null => false
+ t.column :changeset_id, :bigint, :null => false
end
add_foreign_key :changesets_subscribers, :users, :column => :subscriber_id, :name => "changesets_subscribers_subscriber_id_fkey"
"12345",
"12345-6789"
].each do |code|
- post :search, query: code
+ post :search, :query => code
assert_response :success
assert_equal %w(us_postcode osm_nominatim), assigns(:sources)
end