Sha256: 203efe0ca5eeccd76472f4164b83f42df1ae684a992ff0f2cbb99f4692df2a91
Contents?: true
Size: 329 Bytes
Versions: 2
Compression:
Stored size: 329 Bytes
Contents
module DataMiner module ActiveRecordExt def self.included(klass) klass.extend(ClassMethods) end module ClassMethods def mine_data(options = {}, &block) class_eval { cattr_accessor :data_mine } self.data_mine = Configuration.new(self) yield data_mine end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
seamusabshere-data_miner-0.1.0 | lib/data_miner/active_record_ext.rb |
seamusabshere-data_miner-0.1.2 | lib/data_miner/active_record_ext.rb |