Project

General

Profile

RE: Solution API passing the key as a param to new/create... ยป base.rb

Erik Ordway, 2011-12-30 20:25

 
module RedmineClient
class Base < ActiveResource::Base
class << self
attr_accessor :key
end

def save
prefix_options[:key] = self.class.key
super
end

def self.configure(&block)
instance_eval &block
end

end
end

    (1-1/1)