Sha256: 33e19546a620aec994cd457158489c4560ac7810e9dfa8e26eb934d50ba6742b

Contents?: true

Size: 492 Bytes

Versions: 2

Compression:

Stored size: 492 Bytes

Contents

# Following part of code is active with the start of IRB console. 
# Details about features can be seen in console_extensions module.

if defined?(Rails::Console)
    require 'fertilizer/console_extensions'
    include ConsoleExtensions

    # include all modules from lib/poc folder
    Dir.chdir('lib') do
        Dir["poc/*.rb"].each do |file| 
            require file
            eval "include  #{File.basename(file).gsub(/\.rb/,'').camelize}"
        end
    end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fertilizer-0.1.2 lib/generators/templates/fertilizer_console.rb
fertilizer-0.1.1 lib/generators/templates/fertilizer_console.rb