Skip to content

Instantly share code, notes, and snippets.

View yoichiro-manabe's full-sized avatar
🌿
ケムリクサいいですね

Yoichiro Manabe yoichiro-manabe

🌿
ケムリクサいいですね
  • beaglesoft LLC
  • Japan
View GitHub Profile
@yoichiro-manabe
yoichiro-manabe / tslint.config
Last active July 25, 2016 13:32
use-strictを導入したtslint.config
{
"rules": {
"class-name": true,
"use-strict": [
true,
"check-module",
"check-function"
],
"comment-format": [
true,
@yoichiro-manabe
yoichiro-manabe / .irbrc
Created July 23, 2016 11:09
RubyMineのRailsConsoleで必要な設定
include FactoryGirl::Syntax::Methods
# ActiveRecordのログ内容を表示する
ActiveRecord::Base.logger = Logger.new(STDOUT)
# ログの内容を表示する
Rails.logger = Logger.new(STDOUT)
# ActiveRecordの取得結果をテーブル形式で表示する
Hirb.enable
be spring rake db:drop;be spring rake db:create;be spring rake db:migrate; be spring rake db:seed;
@yoichiro-manabe
yoichiro-manabe / gist:11344687
Created April 27, 2014 12:44
ActiveRecordの共通処理をmoduleで行う
# ==
# モデルのベースクラス
# モデルに共通の処理はこのクラスに定義する。
module ApplicationBase
extend ActiveSupport::Concern
included do
acts_as_paranoid
application_base_common
end