Sha256: 783406eef5927aef18fdaad48b899b6862c75467795aebf2f5e9385cfaae59a6

Contents?: true

Size: 281 Bytes

Versions: 1

Compression:

Stored size: 281 Bytes

Contents

require 'action_controller'

module Respondie
  
  def use_trait(&block)
    Respondie::Builder.new("Respondie::Trait::$trait$", self).instance_eval(&block)
  end
  
  alias_method :use_traits, :use_trait
  
end

ActionController::Base.extend Respondie

require 'respondie/builder'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
respondie-0.9.0 lib/respondie.rb