From b55f2c66be559b93e327141f295fc119f7b4bacf Mon Sep 17 00:00:00 2001 From: Steven Heidel Date: Tue, 12 Jan 2010 22:08:27 -0600 Subject: [PATCH] Changed model generator so that it is consistent with the changes to the other models --- .../plugins/refinery/lib/generators/refinery/templates/model.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/plugins/refinery/lib/generators/refinery/templates/model.rb b/vendor/plugins/refinery/lib/generators/refinery/templates/model.rb index 1b01ff4d66..8fcb705f88 100644 --- a/vendor/plugins/refinery/lib/generators/refinery/templates/model.rb +++ b/vendor/plugins/refinery/lib/generators/refinery/templates/model.rb @@ -1,7 +1,7 @@ class <%= class_name %> < ActiveRecord::Base acts_as_indexed :fields => [:<%= attributes.collect{ |attribute| attribute.name if attribute.type.to_s =~ /string|text/ }.compact.uniq.join(", :") %>], - :index_file => (HEROKU ? [RAILS_ROOT,"tmp","index"] : [RAILS_ROOT,"index"]) + :index_file => [RAILS_ROOT,"tmp","index"] validates_presence_of :<%= attributes.first.name %> validates_uniqueness_of :<%= attributes.first.name %>