From 0a4222fb9802aa979171920c489a7db11e3f1ff8 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Sat, 28 Jan 2012 16:47:55 +0200 Subject: Bootstrap: Activities --- app/models/commit.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'app/models/commit.rb') diff --git a/app/models/commit.rb b/app/models/commit.rb index 695dfa5277e..01fac4a849c 100644 --- a/app/models/commit.rb +++ b/app/models/commit.rb @@ -1,4 +1,6 @@ class Commit + include ActiveModel::Conversion + extend ActiveModel::Naming attr_accessor :commit attr_accessor :head @@ -16,6 +18,10 @@ class Commit :id, :to => :commit + def persisted? + false + end + def initialize(raw_commit, head = nil) @commit = raw_commit @head = head -- cgit v1.2.1