use module when using extend #16

Closed
dei79 opened this Issue Aug 26, 2012 · 1 comment

Comments

Projects
None yet
2 participants

dei79 commented Aug 26, 2012

You sample for a configurable class

class Configurable
 def config
  SimpleConfig.for(:application)
  end
end

should be a module if you want to use extend in controllers

module Configurable
 def config
  SimpleConfig.for(:application)
  end
end

weppos closed this in 790025c Aug 26, 2012

Collaborator

weppos commented Aug 26, 2012

Fixed, thank you.

weppos was assigned Aug 26, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment