module DataMapper::Visualizer::Rake::Rails::Tasks
Public Class Methods
new(options={},&block)
click to toggle source
Disables Bundler by default.
Calls superclass method
# File lib/dm-visualizer/rake/rails/tasks.rb, line 9 def initialize(options={},&block) super({:bundle => false}.merge(options),&block) end
Public Instance Methods
task(*arguments)
click to toggle source
Overrides the Rake
‘task` method to make sure every defined task depends on `environment`.
@param [Array] arguments
The arguments of the task.
Calls superclass method
# File lib/dm-visualizer/rake/rails/tasks.rb, line 20 def task(*arguments) if arguments.first.kind_of?(Hash) super(*arguments) else super(arguments.first => :environment) end end