Sha256: 638a11502e6288c95815cf096eee9f358b7c3de00da080512792ef43812d2ff5
Contents?: true
Size: 655 Bytes
Versions: 6
Compression:
Stored size: 655 Bytes
Contents
module HowAreWeDoing module ActsAsPrintable #:nodoc: def self.included(base) base.extend ClassMethods end module ClassMethods def acts_as_printable has_many :prints, :as => :printable, :dependent => :nullify include HowAreWeDoing::ActsAsPrintable::InstanceMethods extend HowAreWeDoing::ActsAsPrintable::SingletonMethods end end module SingletonMethods end module InstanceMethods def to_print_chart_label(graph_type=nil) if respond_to?(:print_chart_label) print_chart_label(graph_type) else to_s end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems