Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

37 lines (27 sloc) 0.588 kb
require 'active_record'
module Newscloud
module Acts
module WallPostable
def self.included(base)
base.extend ClassMethods
end
module ClassMethods
def acts_as_wall_postable
include Newscloud::Acts::WallPostable::InstanceMethods
end
end
module InstanceMethods
attr_accessor :post_wall
def wall_postable?
true
end
def wall_caption
return ''
end
def post_wall?
post_wall and post_wall.to_i != 0
end
end
end
end
end
Jump to Line
Something went wrong with that request. Please try again.