- before_filter :authenticate_reader, :only => [:index, :show]
- before_filter :authenticate_user, :only => []
+ before_filter :authenticate_reader, :only => [
+ :index, :show, :by_author, :by_speech_balloon, :count, :count_by_author
+ ]
+ before_filter :authenticate_user, :only => [:new, :edit, :create, :update, :destroy]
+ before_filter :authenticate_author, :only => [:new, :edit, :create, :update, :destroy]
+ end
+
+ def self.model
+ Balloon