lib/rumblr/tumblelog.rb in hexorx-rumblr-0.0.3 vs lib/rumblr/tumblelog.rb in hexorx-rumblr-0.0.4

- old
+ new

@@ -3,13 +3,12 @@ class Tumblelog < Resource attr_reader :name, :timezone, :cname, :title, :url, :avatar_url, :is_primary, :type, :private_id attr_accessor :user - def posts(options={}) + def posts return [] unless self.url - options.reverse_merge!(:url => self.url) - log, posts = Client.instance.read(options) + log, posts = Client.instance.read({:url => self.url}.merge(self.user.auth)) return posts end def primary? is_primary == "yes"