lib/application_helper.rb in gmaps4rails-0.6.5 vs lib/application_helper.rb in gmaps4rails-0.7.0
- old
+ new
@@ -1,15 +1,15 @@
module ApplicationHelper
- def gmaps4rails(builder, enable_css = true )
+ def gmaps4rails(builder, enable_css = true, enable_js = true )
options = {
"map_options" => { "auto_adjust" => true},
"markers" => { "data" => builder }
}
- render :partial => 'gmaps4rails/gmaps4rails', :locals => { :options => options, :enable_css => enable_css }
+ render :partial => 'gmaps4rails/gmaps4rails', :locals => { :options => options, :enable_css => enable_css, :enable_js => enable_js }
end
- def gmaps(options, enable_css = true )
- render :partial => 'gmaps4rails/gmaps4rails', :locals => { :options => options, :enable_css => enable_css }
+ def gmaps(options, enable_css = true, enable_js = true )
+ render :partial => 'gmaps4rails/gmaps4rails', :locals => { :options => options, :enable_css => enable_css, :enable_js => enable_js }
end
end
\ No newline at end of file