Sha256: 44f5113f80ebb7eeba3d3d064174d5811dae780ba65a77f49596078f6d4501c3

Contents?: true

Size: 284 Bytes

Versions: 10

Compression:

Stored size: 284 Bytes

Contents

module Pose
  module Posifier
    extend ActiveSupport::Concern

    module ClassMethods
      def posify &block
        include Pose
        self.pose_content = block_given? ? block : :pose_content.to_proc
      end
    end
  end
end
ActiveRecord::Base.send :include, Pose::Posifier

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
pose-0.3 lib/pose/posifier.rb
pose-0.2.6 lib/pose/posifier.rb
pose-0.2.5 lib/pose/posifier.rb
pose-0.2.4 lib/pose/posifier.rb
pose-0.2.3 lib/pose/posifier.rb
pose-0.2.2 lib/pose/posifier.rb
pose-0.2.1 lib/pose/posifier.rb
pose-0.2 lib/pose/posifier.rb
pose-0.0.3 lib/pose/posifier.rb
pose-0.0.2 lib/pose/posifier.rb