Switch from ActiveSupports delegate method to Ruby 1.9+ def_delegator
This commit is contained in:
parent
3a19cc668d
commit
336b80cbbd
13 changed files with 37 additions and 22 deletions
|
@ -53,9 +53,12 @@ module Middleman
|
|||
|
||||
# Core File Change API class
|
||||
class API
|
||||
extend Forwardable
|
||||
|
||||
attr_reader :app
|
||||
attr_reader :known_paths
|
||||
delegate :logger, to: :app
|
||||
|
||||
def_delegator :@app, :logger
|
||||
|
||||
# Initialize api and internal path cache
|
||||
def initialize(app)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue