Use frozen_string_literal comment

This commit is contained in:
Hakan Ensari 2015-12-30 19:52:02 +00:00
parent 7284abfdd7
commit bfe8313418
5 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'logger' require 'logger'
require 'pathname' require 'pathname'

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'sinatra' require 'sinatra'
require 'sinatra/cross_origin' require 'sinatra/cross_origin'
require 'sinatra/jsonp' require 'sinatra/jsonp'

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
class Currency < Sequel::Model class Currency < Sequel::Model
dataset_module do dataset_module do
def recent def recent

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'virtus' require 'virtus'
require 'currency' require 'currency'

View File

@ -1,4 +1,9 @@
namespace :db do namespace :db do
desc 'Create db'
task :create do
`createdb fixer`
end
desc 'Run database migrations' desc 'Run database migrations'
task migrate: :environment do task migrate: :environment do
Sequel.extension(:migration) Sequel.extension(:migration)