lib/pose/base_additions.rb in pose-1.0.0 vs lib/pose/base_additions.rb in pose-1.1.0
- old
+ new
@@ -1,10 +1,11 @@
module Pose
module BaseAdditions
def posify &block
+ raise "You must provide a block that returns the searchable content to 'posify'." unless block_given?
include Pose::ModelAdditions
- self.pose_content = block_given? ? block : :pose_content.to_proc
+ self.pose_content = block
end
end
end