moargration 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/moargration.rb +5 -2
  2. data/moargration.gemspec +1 -1
  3. metadata +1 -1
data/lib/moargration.rb CHANGED
@@ -30,9 +30,12 @@ module Moargration
30
30
  class << self
31
31
  alias :columns_without_moargration :columns
32
32
  def columns
33
- columns_without_moargration.reject do |column|
34
- (Moargration.columns_to_ignore[table_name] || []).include?(column.name)
33
+ unless defined?(@cached_moargration_columns) && @cached_moargration_columns
34
+ @cached_moargration_columns = columns_without_moargration.reject do |column|
35
+ (Moargration.columns_to_ignore[table_name] || []).include?(column.name)
36
+ end
35
37
  end
38
+ @cached_moargration_columns
36
39
  end
37
40
  end
38
41
  end
data/moargration.gemspec CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |gem|
6
6
  gem.name = "moargration"
7
- gem.version = "0.0.3"
7
+ gem.version = "0.0.4"
8
8
  gem.authors = ["Pedro Belo"]
9
9
  gem.email = ["pedro@heroku.com"]
10
10
  gem.description = %q{Helping you migrate, MOAR.}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moargration
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: