This website works better with JavaScript.
Home
Explore
Help
Sign In
adrianshort
/
apollo
mirror of
https://github.com/adrianshort/apollo.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
0
Wiki
Activity
Browse Source
Add ActiveRecord subclassing
master
Adrian Short
12 years ago
parent
370d27655e
commit
f5a0f586c7
3 changed files
with
3 additions
and
3 deletions
Split View
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
View File
@@ -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
View File
@@ -1,4 +1,4 @@
class Post
class Post
< ActiveRecord::Base
belongs_to :feed
EARTH_RADIUS_M = 6378000
+ 1
- 1
app/models/user.rb
View File
@@ -1,4 +1,4 @@
class User
class User
< ActiveRecord::Base
authenticates_with_sorcery!
# attr_accessible :email, :password, :password_confirmation
Write
Preview
Loading…
Cancel
Save