class Company < ActiveRecord::Base
(1..114).each do |each|
attr_accessor :"attribute_#{each}"
end
before_create :before_create_if_with_proc_condition,
:if => lambda {|company| company.attribute_1 == 'before_create_if_with_proc_condition'}
before_create :before_create_unless_with_proc_condition,
:unless => lambda {|company| company.attribute_2 == 'before_create_unless_with_proc_condition'}
def before_create_if_with_proc_condition
self.attribute_1 = 'attribute_1'
end
def before_create_unless_with_proc_condition
self.attribute_2 = 'attribute_2'
end
after_create :after_create_if_with_proc_condition,
:if => lambda {|company| company.attribute_3 == 'after_create_if_with_proc_condition'}
after_create :after_create_unless_with_proc_condition,
:unless => lambda {|company| company.attribute_4 == 'after_create_unless_with_proc_condition'}
def after_create_if_with_proc_condition
self.attribute_3 = 'attribute_3'
end
def after_create_unless_with_proc_condition
self.attribute_4 = 'attribute_4'
end
before_save :before_save_if_with_proc_condition,
:if => lambda {|company| company.attribute_5 == 'before_save_if_with_proc_condition'}
before_save :before_save_unless_with_proc_condition,
:unless => lambda {|company| company.attribute_6 == 'before_save_unless_with_proc_condition'}
def before_save_if_with_proc_condition
self.attribute_5 = 'attribute_5'
end
def before_save_unless_with_proc_condition
self.attribute_6 = 'attribute_6'
end
after_save :after_save_if_with_proc_condition,
:if => lambda {|company| company.attribute_7 == 'after_save_if_with_proc_condition'}
after_save :after_save_unless_with_proc_condition,
:unless => lambda {|company| company.attribute_8 == 'after_save_unless_with_proc_condition'}
def after_save_if_with_proc_condition
self.attribute_7 = 'attribute_7'
end
def after_save_unless_with_proc_condition
self.attribute_8 = 'attribute_8'
end
before_destroy :before_destroy_if_with_proc_condition,
:if => lambda {|company| company.attribute_9 == 'before_destroy_if_with_proc_condition'}
before_destroy :before_destroy_unless_with_proc_condition,
:unless => lambda {|company| company.attribute_10 == 'before_destroy_unless_with_proc_condition'}
def before_destroy_if_with_proc_condition
self.attribute_9 = 'attribute_9'
end
def before_destroy_unless_with_proc_condition
self.attribute_10 = 'attribute_10'
end
after_destroy :after_destroy_if_with_proc_condition,
:if => lambda {|company| company.attribute_11 == 'after_destroy_if_with_proc_condition'}
after_destroy :after_destroy_unless_with_proc_condition,
:unless => lambda {|company| company.attribute_12 == 'after_destroy_unless_with_proc_condition'}
def after_destroy_if_with_proc_condition
self.attribute_11 = 'attribute_11'
end
def after_destroy_unless_with_proc_condition
self.attribute_12 = 'attribute_12'
end
before_update :before_update_if_with_proc_condition,
:if => lambda {|company| company.attribute_13 == 'before_update_if_with_proc_condition'}
before_update :before_update_unless_with_proc_condition,
:unless => lambda {|company| company.attribute_14 == 'before_update_unless_with_proc_condition'}
def before_update_if_with_proc_condition
self.attribute_13 = 'attribute_13'
end
def before_update_unless_with_proc_condition
self.attribute_14 = 'attribute_14'
end
after_update :after_update_if_with_proc_condition,
:if => lambda {|company| company.attribute_15 == 'after_update_if_with_proc_condition'}
after_update :after_update_unless_with_proc_condition,
:unless => lambda {|company| company.attribute_16 == 'after_update_unless_with_proc_condition'}
def after_update_if_with_proc_condition
self.attribute_15 = 'attribute_15'
end
def after_update_unless_with_proc_condition
self.attribute_16 = 'attribute_16'
end
before_validation :before_validation_if_with_proc_condition,
:if => lambda {|company| company.attribute_17 == 'before_validation_if_with_proc_condition'}
before_validation :before_validation_unless_with_proc_condition,
:unless => lambda {|company| company.attribute_18 == 'before_validation_unless_with_proc_condition'}
def before_validation_if_with_proc_condition
self.attribute_17 = 'attribute_17'
end
def before_validation_unless_with_proc_condition
self.attribute_18 = 'attribute_18'
end
after_validation :after_validation_if_with_proc_condition,
:if => lambda {|company| company.attribute_19 == 'after_validation_if_with_proc_condition'}
after_validation :after_validation_unless_with_proc_condition,
:unless => lambda {|company| company.attribute_20 == 'after_validation_unless_with_proc_condition'}
def after_validation_if_with_proc_condition
self.attribute_19 = 'attribute_19'
end
def after_validation_unless_with_proc_condition
self.attribute_20 = 'attribute_20'
end
before_validation_on_create :before_validation_on_create_if_with_proc_condition,
:if => lambda {|company| company.attribute_21 == 'before_validation_on_create_if_with_proc_condition'}
before_validation_on_create :before_validation_on_create_unless_with_proc_condition,
:unless => lambda {|company| company.attribute_22 == 'before_validation_on_create_unless_with_proc_condition'}
def before_validation_on_create_if_with_proc_condition
self.attribute_21 = 'attribute_21'
end
def before_validation_on_create_unless_with_proc_condition
self.attribute_22 = 'attribute_22'
end
after_validation_on_create :after_validation_on_create_if_with_proc_condition,
:if => lambda {|company| company.attribute_23 == 'after_validation_on_create_if_with_proc_condition'}
after_validation_on_create :after_validation_on_create_unless_with_proc_condition,
:unless => lambda {|company| company.attribute_24 == 'after_validation_on_create_unless_with_proc_condition'}
def after_validation_on_create_if_with_proc_condition
self.attribute_23 = 'attribute_23'
end
def after_validation_on_create_unless_with_proc_condition
self.attribute_24 = 'attribute_24'
end
before_validation_on_update :before_validation_on_update_if_with_proc_condition,
:if => lambda {|company| company.attribute_25 == 'before_validation_on_update_if_with_proc_condition'}
before_validation_on_update :before_validation_on_update_unless_with_proc_condition,
:unless => lambda {|company| company.attribute_26 == 'before_validation_on_update_unless_with_proc_condition'}
def before_validation_on_update_if_with_proc_condition
self.attribute_25 = 'attribute_25'
end
def before_validation_on_update_unless_with_proc_condition
self.attribute_26 = 'attribute_26'
end
after_validation_on_update :after_validation_on_update_if_with_proc_condition,
:if => lambda {|company| company.attribute_27 == 'after_validation_on_update_if_with_proc_condition'}
after_validation_on_update :after_validation_on_update_unless_with_proc_condition,
:unless => lambda {|company| company.attribute_28 == 'after_validation_on_update_unless_with_proc_condition'}
def after_validation_on_update_if_with_proc_condition
self.attribute_27 = 'attribute_27'
end
def after_validation_on_update_unless_with_proc_condition
self.attribute_28 = 'attribute_28'
end
after_initialize :after_initialize_if_with_proc_condition,
:if => lambda {|company| company.attribute_29 == 'after_initialize_if_with_proc_condition'}
after_initialize :after_initialize_unless_with_proc_condition,
:unless => lambda {|company| company.attribute_30 == 'after_initialize_unless_with_proc_condition'}
def after_initialize
end
def after_initialize_if_with_proc_condition
self.attribute_29 = 'attribute_29'
end
def after_initialize_unless_with_proc_condition
self.attribute_30 = 'attribute_30'
end
after_find :after_find_if_with_proc_condition,
:if => lambda {|company| company.name == 'after_find_if_with_proc_condition'}
after_find :after_find_unless_with_proc_condition,
:unless => lambda {|company| company.name == 'after_find_unless_with_proc_condition'}
def after_find
end
def after_find_if_with_proc_condition
self.attribute_31 = 'attribute_31'
end
def after_find_unless_with_proc_condition
self.attribute_32 = 'attribute_32'
end
validate :validate_if_with_proc_condition,
:if => lambda {|company| company.attribute_33 == 'validate_if_with_proc_condition'}
validate :validate_unless_with_proc_condition,
:unless => lambda {|company| company.attribute_34 == 'validate_unless_with_proc_condition'}
def validate_if_with_proc_condition
self.attribute_33 = 'attribute_33'
end
def validate_unless_with_proc_condition
self.attribute_34 = 'attribute_34'
end
validate_on_create :validate_on_create_if_with_proc_condition,
:if => lambda {|company| company.attribute_35 == 'validate_on_create_if_with_proc_condition'}
validate_on_create :validate_on_create_unless_with_proc_condition,
:unless => lambda {|company| company.attribute_36 == 'validate_on_create_unless_with_proc_condition'}
def validate_on_create_if_with_proc_condition
self.attribute_35 = 'attribute_35'
end
def validate_on_create_unless_with_proc_condition
self.attribute_36 = 'attribute_36'
end
validate_on_update :validate_on_update_if_with_proc_condition,
:if => lambda {|company| company.attribute_37 == 'validate_on_update_if_with_proc_condition'}
validate_on_update :validate_on_update_unless_with_proc_condition,
:unless => lambda {|company| company.attribute_38 == 'validate_on_update_unless_with_proc_condition'}
def validate_on_update_if_with_proc_condition
self.attribute_37 = 'attribute_37'
end
def validate_on_update_unless_with_proc_condition
self.attribute_38 = 'attribute_38'
end
before_create :before_create_if_with_string_condition,
:if => 'attribute_39 == "before_create_if_with_string_condition"'
before_create :before_create_unless_with_string_condition,
:unless => 'attribute_40 == "before_create_unless_with_string_condition"'
def before_create_if_with_string_condition
self.attribute_39 = 'attribute_39'
end
def before_create_unless_with_string_condition
self.attribute_40 = 'attribute_40'
end
after_create :after_create_if_with_string_condition,
:if => 'attribute_41 == "after_create_if_with_string_condition"'
after_create :after_create_unless_with_string_condition,
:unless => 'attribute_42 == "after_create_unless_with_string_condition"'
def after_create_if_with_string_condition
self.attribute_41 = 'attribute_41'
end
def after_create_unless_with_string_condition
self.attribute_42 = 'attribute_42'
end
before_save :before_save_if_with_string_condition,
:if => 'attribute_43 == "before_save_if_with_string_condition"'
before_save :before_save_unless_with_string_condition,
:unless => 'attribute_44 == "before_save_unless_with_string_condition"'
def before_save_if_with_string_condition
self.attribute_43 = 'attribute_43'
end
def before_save_unless_with_string_condition
self.attribute_44 = 'attribute_44'
end
after_save :after_save_if_with_string_condition,
:if => 'attribute_45 == "after_save_if_with_string_condition"'
after_save :after_save_unless_with_string_condition,
:unless => 'attribute_46 == "after_save_unless_with_string_condition"'
def after_save_if_with_string_condition
self.attribute_45 = 'attribute_45'
end
def after_save_unless_with_string_condition
self.attribute_46 = 'attribute_46'
end
before_destroy :before_destroy_if_with_string_condition,
:if => 'attribute_47 == "before_destroy_if_with_string_condition"'
before_destroy :before_destroy_unless_with_string_condition,
:unless => 'attribute_48 == "before_destroy_unless_with_string_condition"'
def before_destroy_if_with_string_condition
self.attribute_47 = 'attribute_47'
end
def before_destroy_unless_with_string_condition
self.attribute_48 = 'attribute_48'
end
after_destroy :after_destroy_if_with_string_condition,
:if => 'attribute_49 == "after_destroy_if_with_string_condition"'
after_destroy :after_destroy_unless_with_string_condition,
:unless => 'attribute_50 == "after_destroy_unless_with_string_condition"'
def after_destroy_if_with_string_condition
self.attribute_49 = 'attribute_49'
end
def after_destroy_unless_with_string_condition
self.attribute_50 = 'attribute_50'
end
before_update :before_update_if_with_string_condition,
:if => 'attribute_51 == "before_update_if_with_string_condition"'
before_update :before_update_unless_with_string_condition,
:unless => 'attribute_52 == "before_update_unless_with_string_condition"'
def before_update_if_with_string_condition
self.attribute_51 = 'attribute_51'
end
def before_update_unless_with_string_condition
self.attribute_52 = 'attribute_52'
end
after_update :after_update_if_with_string_condition,
:if => 'attribute_53 == "after_update_if_with_string_condition"'
after_update :after_update_unless_with_string_condition,
:unless => 'attribute_54 == "after_update_unless_with_string_condition"'
def after_update_if_with_string_condition
self.attribute_53 = 'attribute_53'
end
def after_update_unless_with_string_condition
self.attribute_54 = 'attribute_54'
end
before_validation :before_validation_if_with_string_condition,
:if => 'attribute_55 == "before_validation_if_with_string_condition"'
before_validation :before_validation_unless_with_string_condition,
:unless => 'attribute_56 == "before_validation_unless_with_string_condition"'
def before_validation_if_with_string_condition
self.attribute_55 = 'attribute_55'
end
def before_validation_unless_with_string_condition
self.attribute_56 = 'attribute_56'
end
after_validation :after_validation_if_with_string_condition,
:if => 'attribute_57 == "after_validation_if_with_string_condition"'
after_validation :after_validation_unless_with_string_condition,
:unless => 'attribute_58 == "after_validation_unless_with_string_condition"'
def after_validation_if_with_string_condition
self.attribute_57 = 'attribute_57'
end
def after_validation_unless_with_string_condition
self.attribute_58 = 'attribute_58'
end
before_validation_on_create :before_validation_on_create_if_with_string_condition,
:if => 'attribute_59 == "before_validation_on_create_if_with_string_condition"'
before_validation_on_create :before_validation_on_create_unless_with_string_condition,
:unless => 'attribute_60 == "before_validation_on_create_unless_with_string_condition"'
def before_validation_on_create_if_with_string_condition
self.attribute_59 = 'attribute_59'
end
def before_validation_on_create_unless_with_string_condition
self.attribute_60 = 'attribute_60'
end
after_validation_on_create :after_validation_on_create_if_with_string_condition,
:if => 'attribute_61 == "after_validation_on_create_if_with_string_condition"'
after_validation_on_create :after_validation_on_create_unless_with_string_condition,
:unless => 'attribute_62 == "after_validation_on_create_unless_with_string_condition"'
def after_validation_on_create_if_with_string_condition
self.attribute_61 = 'attribute_61'
end
def after_validation_on_create_unless_with_string_condition
self.attribute_62 = 'attribute_62'
end
before_validation_on_update :before_validation_on_update_if_with_string_condition,
:if => 'attribute_63 == "before_validation_on_update_if_with_string_condition"'
before_validation_on_update :before_validation_on_update_unless_with_string_condition,
:unless => 'attribute_64 == "before_validation_on_update_unless_with_string_condition"'
def before_validation_on_update_if_with_string_condition
self.attribute_63 = 'attribute_63'
end
def before_validation_on_update_unless_with_string_condition
self.attribute_64 = 'attribute_64'
end
after_validation_on_update :after_validation_on_update_if_with_string_condition,
:if => 'attribute_65 == "after_validation_on_update_if_with_string_condition"'
after_validation_on_update :after_validation_on_update_unless_with_string_condition,
:unless => 'attribute_66 == "after_validation_on_update_unless_with_string_condition"'
def after_validation_on_update_if_with_string_condition
self.attribute_65 = 'attribute_65'
end
def after_validation_on_update_unless_with_string_condition
self.attribute_66 = 'attribute_66'
end
after_initialize :after_initialize_if_with_string_condition,
:if => 'attribute_67 == "after_initialize_if_with_string_condition"'
after_initialize :after_initialize_unless_with_string_condition,
:unless => 'attribute_68 == "after_initialize_unless_with_string_condition"'
def after_initialize
end
def after_initialize_if_with_string_condition
self.attribute_67 = 'attribute_67'
end
def after_initialize_unless_with_string_condition
self.attribute_68 = 'attribute_68'
end
after_find :after_find_if_with_string_condition,
:if => 'name == "after_find_if_with_string_condition"'
after_find :after_find_unless_with_string_condition,
:unless => 'name == "after_find_unless_with_string_condition"'
def after_find
end
def after_find_if_with_string_condition
self.attribute_69 = 'attribute_69'
end
def after_find_unless_with_string_condition
self.attribute_70 = 'attribute_70'
end
validate :validate_if_with_string_condition,
:if => 'attribute_71 == "validate_if_with_string_condition"'
validate :validate_unless_with_string_condition,
:unless => 'attribute_72 == "validate_unless_with_string_condition"'
def validate_if_with_string_condition
self.attribute_71 = 'attribute_71'
end
def validate_unless_with_string_condition
self.attribute_72 = 'attribute_72'
end
validate_on_create :validate_on_create_if_with_string_condition,
:if => 'attribute_73 == "validate_on_create_if_with_string_condition"'
validate_on_create :validate_on_create_unless_with_string_condition,
:unless => 'attribute_74 == "validate_on_create_unless_with_string_condition"'
def validate_on_create_if_with_string_condition
self.attribute_73 = 'attribute_73'
end
def validate_on_create_unless_with_string_condition
self.attribute_74 = 'attribute_74'
end
validate_on_update :validate_on_update_if_with_string_condition,
:if => 'attribute_75 == "validate_on_update_if_with_string_condition"'
validate_on_update :validate_on_update_unless_with_string_condition,
:unless => 'attribute_76 == "validate_on_update_unless_with_string_condition"'
def validate_on_update_if_with_string_condition
self.attribute_75 = 'attribute_75'
end
def validate_on_update_unless_with_string_condition
self.attribute_76 = 'attribute_76'
end
before_create :before_create_if_with_symbol_condition,
:if => :before_create_if_with_symbol_condition?
before_create :before_create_unless_with_symbol_condition,
:unless => :before_create_unless_with_symbol_condition?
def before_create_if_with_symbol_condition
self.attribute_77 = 'attribute_77'
end
def before_create_if_with_symbol_condition?
attribute_77 == 'before_create_if_with_symbol_condition'
end
def before_create_unless_with_symbol_condition
self.attribute_78 = 'attribute_78'
end
def before_create_unless_with_symbol_condition?
attribute_78 == 'before_create_unless_with_symbol_condition'
end
after_create :after_create_if_with_symbol_condition,
:if => :after_create_if_with_symbol_condition?
after_create :after_create_unless_with_symbol_condition,
:unless => :after_create_unless_with_symbol_condition?
def after_create_if_with_symbol_condition
self.attribute_79 = 'attribute_79'
end
def after_create_if_with_symbol_condition?
attribute_79 == 'after_create_if_with_symbol_condition'
end
def after_create_unless_with_symbol_condition
self.attribute_80 = 'attribute_80'
end
def after_create_unless_with_symbol_condition?
attribute_80 == 'after_create_unless_with_symbol_condition'
end
before_save :before_save_if_with_symbol_condition,
:if => :before_save_if_with_symbol_condition?
before_save :before_save_unless_with_symbol_condition,
:unless => :before_save_unless_with_symbol_condition?
def before_save_if_with_symbol_condition
self.attribute_81 = 'attribute_81'
end
def before_save_if_with_symbol_condition?
attribute_81 == 'before_save_if_with_symbol_condition'
end
d