diff --git a/app/assets/javascripts/locomotive/views/application_view.js.coffee b/app/assets/javascripts/locomotive/views/application_view.js.coffee index 46567782..3b80856f 100644 --- a/app/assets/javascripts/locomotive/views/application_view.js.coffee +++ b/app/assets/javascripts/locomotive/views/application_view.js.coffee @@ -9,5 +9,4 @@ class Locomotive.Views.ApplicationView extends Backbone.View render_flash_messages: (messages) -> _.each messages, (couple) -> - console.log(couple); $.growl couple[0], couple[1] diff --git a/app/helpers/locomotive/base_helper.rb b/app/helpers/locomotive/base_helper.rb index efb04e91..024f87db 100644 --- a/app/helpers/locomotive/base_helper.rb +++ b/app/helpers/locomotive/base_helper.rb @@ -44,17 +44,6 @@ module Locomotive::BaseHelper "new Object({ \"collection\": [#{js.join(', ')}], #{options_to_js} })" end - # def growl_message - # if not flash.empty? - # first_key = flash.keys.first - # %{ - # $(document).ready(function() { - # $.growl("#{first_key}", "#{flash[first_key]}"); - # }); - # }.to_s - # end - # end - def flash_message if not flash.empty? first_key = flash.keys.first diff --git a/lib/locomotive/mongoid/document.rb b/lib/locomotive/mongoid/document.rb index 3bbd1903..a154851c 100644 --- a/lib/locomotive/mongoid/document.rb +++ b/lib/locomotive/mongoid/document.rb @@ -12,10 +12,6 @@ module Locomotive include ::Mongoid::CustomFields end - # def to_json - # - # end - def as_json(options={}) attrs = super(options) attrs["id"] = attrs["_id"]