Project

General

Profile

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

Erik Ordway, 2011-12-30 20:25

 
1
module RedmineClient
2
  class Base < ActiveResource::Base
3
    class << self
4
      attr_accessor :key
5
    end
6

    
7
    def save
8
      prefix_options[:key] = self.class.key
9
      super
10
    end
11

    
12
    def self.configure(&block)
13
      instance_eval &block
14
    end
15

    
16
  end
17
end
18

    
    (1-1/1)