Sha256: 60acc8eac943a931a322a284bd891404d55f38deb84638de6ee5cac0df1fbf8e
Contents?: true
Size: 711 Bytes
Versions: 1
Compression:
Stored size: 711 Bytes
Contents
$(document).ready -> Models.Report = Backbone.Model.extend url: -> if @name_seo return "/reports/view/" + @name_seo + '.json' else if @cityname return "/reports/in-city/" + @cityname + ".json" else return "/reports.json" initialize: (item) -> if item.name_seo @name_seo = item.name_seo if item.cityname @cityname = item.cityname Collections.Reports = Backbone.Collection.extend model: Models.Report url: -> if @cityname return "/reports/in-city/" + @cityname + ".json" else return "/reports.json" initialize: ( item ) -> if item.cityname @cityname = item.cityname
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ish_lib-0.0.3 | app/assets/javascripts/trash/models/report.coffee |