This file contains 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
# Models | |
class Post < ActiveRecord::Base | |
after_save :do_something_to_tags | |
has_many :post_tags, inverse_of: :post | |
has_many :tags, through: :post_tags | |
def do_something_to_tags | |
puts "The following line in Rails 4.2 incorrectly joins on post_id = NULL" |
This file contains 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
#!/usr/bin/env bash | |
set -e | |
# copy_bower_components - A very simple bash script for copying your Bower | |
# components over to your rails vendor/assets folder. | |
# | |
# Copyright (c) 2013 Mark Przepiora | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal |
This file contains 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
find spec -name '*.rb' | xargs sed -i '' -E 's/([^.]|^)stub([^_]|$)/\1double\2/g' |
NewerOlder