Sha256: 9e111d67f9d966d7594233024cf689586fe2fc493679723ae5c3d4f45825ddb7

Contents?: true

Size: 331 Bytes

Versions: 7

Compression:

Stored size: 331 Bytes

Contents

module Quandl
module Command
class Task

module Callbacks
  
  extend ActiveSupport::Concern

  included do
  
    extend ActiveModel::Callbacks
    define_model_callbacks :execute, :call
    
  end

  def call
    run_callbacks(:call) do
      run_callbacks(:execute) do
        execute
      end
    end
  end
  
end

end
end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
quandl-0.4.4 lib/quandl/command/task/callbacks.rb
quandl-0.4.3 lib/quandl/command/task/callbacks.rb
quandl-0.4.2 lib/quandl/command/task/callbacks.rb
quandl-0.4.1 lib/quandl/command/task/callbacks.rb
quandl-0.4.0 lib/quandl/command/task/callbacks.rb
quandl-0.3.7 lib/quandl/command/task/callbacks.rb
quandl-0.3.6 lib/quandl/command/task/callbacks.rb