instance method alias_attribute_with_dirty

Ruby on Rails 2.3.18

Since v2.2.3 Last seen in v2.3.18

Available in: v2.2.3 v2.3.18

Signature

alias_attribute_with_dirty(new_name, old_name)

No documentation comment.

Parameters

new_name req
old_name req
Source
# File activerecord/lib/active_record/dirty.rb, line 173
      def alias_attribute_with_dirty(new_name, old_name)
        alias_attribute_without_dirty(new_name, old_name)
        DIRTY_SUFFIXES.each do |suffix|
          module_eval <<-STR, __FILE__, __LINE__ + 1
            def #{new_name}#{suffix}; self.#{old_name}#{suffix}; end  # def subject_changed?; self.title_changed?; end
          STR
        end
      end

Defined in activerecord/lib/active_record/dirty.rb line 173 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::Dirty::ClassMethods

Type at least 2 characters to search.

↑↓ navigate · open · esc close