Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def make_controller(type)
- level = @config['level']
- user = @config["#{level}"]["#{type}"]['user']
- pass = @config["#{level}"]["#{type}"]['pass']
- email = @config["#{level}"]["#{type}"]['email']
- eval <<-CONTROLLERDONE
- controller = #{type}Controller.new(user, pass, email)
- CONTROLLERDONE
- @controllers << controller
- controller
- end
Add Comment
Please, Sign In to add comment