remove useless piece of code
This commit is contained in:
parent
599b1d6395
commit
aa1abd2e92
@ -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]
|
||||
|
@ -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
|
||||
|
@ -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"]
|
||||
|
Loading…
Reference in New Issue
Block a user