lib/acts_like_git/active_record_ext/git.rb
def read_git_method(column)
        if v = self.local_versioned_fields_values[column]
          return v
        end
        
        last_commit = self.git.log.first
        (last_commit.tree/model_folder/model_id/"#{column}.txt").data
      rescue Object => e
        ''
      end
# List all the fields that are dirty that we version
List all the fields that are dirty that we version
List all the fields that are dirty that we version
def read_git_method(column)
        if v = self.local_versioned_fields_values[column]
          return v
        end
        last_commit = self.git.log.first
        (last_commit.tree/model_folder/model_id/"#{column}.txt").data
      rescue Object => e
        ''
      end
def read_git_method ( column ) if v = self . local_versioned_fields_values [ column ] return v end last_commit = self . git . log . first ( last_commit . tree / model_folder / model_id / "#{column}.txt" ) . data rescue Object => e '' end
List all the fields that are dirty that we version
List all the fields that are dirty that we version
column