Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Adds Clip attribute is_favorite

Also adds backwards compability for is_starred.
  • Loading branch information...
commit 2805d909c45ea9fe066f6b7a185a5ef32034d9c9 1 parent aab62be
@vesan authored
Showing with 6 additions and 2 deletions.
  1. +6 −2 lib/kippt/clip.rb
View
8 lib/kippt/clip.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.