Sha256: 33a5a7457d5273f71d1d71d6144fded720ac9ff288ae40c03c4ac9cf5ed0b06f

Contents?: true

Size: 387 Bytes

Versions: 4

Compression:

Stored size: 387 Bytes

Contents

require 'epom'
require 'epom_rails/acts_as'

require 'epom_rails/config'

module EpomRails
	attr_accessor :epom_klass, :epom_fields

	Epom::EpomElement.login(ENV['username'], ENV['password'])

	def method_missing(method_name, *args)
		if not EpomRails.config.offline and epom_klass.respond_to?(method_name)
			epom_klass.send(method_name, args[0], args[1])
		else
			super
		end
	end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
epom_rails-0.4.9 lib/epom_rails.rb
epom_rails-0.4.8 lib/epom_rails.rb
epom_rails-0.4.7 lib/epom_rails.rb
epom_rails-0.4.6 lib/epom_rails.rb