Permalink
Browse files

Adds Clip attribute is_favorite

Also adds backwards compability for is_starred.
  • Loading branch information...
1 parent aab62be commit 2805d909c45ea9fe066f6b7a185a5ef32034d9c9 @vesan committed Mar 24, 2013
Showing with 6 additions and 2 deletions.
  1. +6 −2 lib/kippt/clip.rb
View
@@ -12,8 +12,12 @@ class Kippt::Clip
:user => Kippt::User
writable_attributes :is_favorite, :title, :url, :notes, :list
- alias_method :is_starred, :is_favorite
- alias_method :is_starred=, :is_favorite=
+
+ boolean_attributes :is_favorite
+
+ alias :is_starred :is_favorite
+ alias :is_starred= :is_favorite=
+ alias :starred? :favorite?
embedded_attributes :list => Kippt::List

0 comments on commit 2805d90

Please sign in to comment.