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) ->
|
render_flash_messages: (messages) ->
|
||||||
_.each messages, (couple) ->
|
_.each messages, (couple) ->
|
||||||
console.log(couple);
|
|
||||||
$.growl couple[0], couple[1]
|
$.growl couple[0], couple[1]
|
||||||
|
@ -44,17 +44,6 @@ module Locomotive::BaseHelper
|
|||||||
"new Object({ \"collection\": [#{js.join(', ')}], #{options_to_js} })"
|
"new Object({ \"collection\": [#{js.join(', ')}], #{options_to_js} })"
|
||||||
end
|
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
|
def flash_message
|
||||||
if not flash.empty?
|
if not flash.empty?
|
||||||
first_key = flash.keys.first
|
first_key = flash.keys.first
|
||||||
|
@ -12,10 +12,6 @@ module Locomotive
|
|||||||
include ::Mongoid::CustomFields
|
include ::Mongoid::CustomFields
|
||||||
end
|
end
|
||||||
|
|
||||||
# def to_json
|
|
||||||
#
|
|
||||||
# end
|
|
||||||
|
|
||||||
def as_json(options={})
|
def as_json(options={})
|
||||||
attrs = super(options)
|
attrs = super(options)
|
||||||
attrs["id"] = attrs["_id"]
|
attrs["id"] = attrs["_id"]
|
||||||
|
Loading…
Reference in New Issue
Block a user