Sha256: 8f0a06b75b7a51e38454e6fd3b6aa7d43fc17dd396520a30f99541f38401204f
Contents?: true
Size: 526 Bytes
Versions: 9
Compression:
Stored size: 526 Bytes
Contents
module ESA module Filters module ChartFilter extend ActiveSupport::Concern included do scope :with_chart, lambda { |chart| with_account(Account.where(chart_id: chart)) } scope :with_chart_name, lambda { |name| with_chart(Chart.where(name: name)) } end end end end ESA::Amount.send :include, ESA::Filters::ChartFilter ESA::Event.send :include, ESA::Filters::ChartFilter ESA::Flag.send :include, ESA::Filters::ChartFilter ESA::Transaction.send :include, ESA::Filters::ChartFilter
Version data entries
9 entries across 9 versions & 1 rubygems