lib/eucalypt/eucalypt-blog/namespaces/blog/cli/blog.rb in eucalypt-0.2.0 vs lib/eucalypt/eucalypt-blog/namespaces/blog/cli/blog.rb in eucalypt-0.2.1
- old
+ new
@@ -31,16 +31,16 @@
generator.views
asset_pipeline_file = File.join(directory, 'config', 'asset_pipeline.rb')
File.open(asset_pipeline_file) do |f|
- return if f.read.include? "environment.append_path Eucalypt.path 'app', 'assets', 'blog'"
+ return if f.read.include? "assets.append_path Eucalypt.path 'app', 'assets', 'blog'"
end
insert_into_file(
asset_pipeline_file,
- "\tenvironment.append_path Eucalypt.path 'app', 'assets', 'blog'\n",
- after: "set :environment, Sprockets::Environment.new\n"
+ "\tassets.append_path Eucalypt.path 'app', 'assets', 'blog'\n",
+ after: "set :assets, Sprockets::Environment.new\n"
)
else
Eucalypt::Error.wrong_directory
end
end
\ No newline at end of file