Sha256: d5106510a97486148baeea31057549392cbbcfaa52cab23e278e5bb14a6307be

Contents?: true

Size: 500 Bytes

Versions: 11

Compression:

Stored size: 500 Bytes

Contents

class Entry < ActiveRecord::Base
  attr_accessor :validation_should_fail

  def validate
    errors.add("image","some stupid error") if @validation_should_fail
  end
  
  def after_assign
    @after_assign_called = true
  end
  
  def after_assign_called?
    @after_assign_called
  end
  
  def after_save
    @after_save_called = true
  end

  def after_save_called?
    @after_save_called
  end

  def my_store_dir
    # not really dynamic but at least it could be...
    "my_store_dir"
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
file_column_with_s3-0.2.0 test/fixtures/entry.rb
file_column_with_s3-0.1.9 test/fixtures/entry.rb
file_column_with_s3-0.1.8 test/fixtures/entry.rb
file_column_with_s3-0.1.7 test/fixtures/entry.rb
file_column_with_s3-0.1.6 test/fixtures/entry.rb
file_column_with_s3-0.1.5 test/fixtures/entry.rb
file_column_with_s3-0.1.4 test/fixtures/entry.rb
file_column_with_s3-0.1.3 test/fixtures/entry.rb
file_column_with_s3-0.1.2 test/fixtures/entry.rb
file_column_with_s3-0.1.1 test/fixtures/entry.rb
file_column_with_s3-0.1.0 test/fixtures/entry.rb