module Bushido module Generators module OrmHelpers def model_contents <<-CONTENT # Bind to a shared Bushido model bushido :customer_lead CONTENT end def model_exists? File.exists?(File.join(destination_root, model_path)) end def model_path @model_path ||= File.join("app", "models", "#{file_path}.rb") end end end end