This website works better with JavaScript.
首頁
探索
說明
登入
adrianshort
/
apollo
镜像来自
https://github.com/adrianshort/apollo.git
關註
1
收藏
0
複製
0
程式碼
問題管理
0
版本發佈
0
Wiki
Activity
瀏覽代碼
Add ActiveRecord subclassing
master
Adrian Short
12 年之前
父節點
370d27655e
當前提交
f5a0f586c7
共有
3 個文件被更改
,包括
3 次插入
和
3 次删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
app/models/feed.rb
+1
-1
app/models/post.rb
+1
-1
app/models/user.rb
+ 1
- 1
app/models/feed.rb
查看文件
@@ -1,4 +1,4 @@
class Feed
class Feed
< ActiveRecord::Base
has_many :posts, :dependent => :destroy
validates :title, :presence => true
+ 1
- 1
app/models/post.rb
查看文件
@@ -1,4 +1,4 @@
class Post
class Post
< ActiveRecord::Base
belongs_to :feed
EARTH_RADIUS_M = 6378000
+ 1
- 1
app/models/user.rb
查看文件
@@ -1,4 +1,4 @@
class User
class User
< ActiveRecord::Base
authenticates_with_sorcery!
# attr_accessible :email, :password, :password_confirmation
Write
Preview
Loading…
取消
儲存