remove useless piece of code

This commit is contained in:
did 2011-11-10 02:47:26 +01:00
parent 599b1d6395
commit aa1abd2e92
3 changed files with 0 additions and 16 deletions

View File

@ -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]

View File

@ -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

View File

@ -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"]