Skip to content

Instantly share code, notes, and snippets.

@kennethkalmer
Created November 27, 2009 12:07
Show Gist options
  • Save kennethkalmer/243977 to your computer and use it in GitHub Desktop.
Save kennethkalmer/243977 to your computer and use it in GitHub Desktop.
class ModelWithIgnoredColumns < ActiveRecord::Base
class << self
def columns_without_binary_timestamps
columns = columns_with_binary_timestamps
columns.reject { |c| c.name == 'i_hate_you_microsoft' }
end
alias_method_chain :columns, :binary_timestamps
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment