Sha256: ee2487e1775213788e4a58a22f2f9cf9016b2d7749d6c81d9c21890cfbbb61a1
Contents?: true
Size: 705 Bytes
Versions: 1
Compression:
Stored size: 705 Bytes
Contents
$(document).ready -> Models.Venue = Backbone.Model.extend url: -> if @name_seo return "/venues/show/" + @name_seo + '.json' else if @cityname return "/venues/in-city/" + @cityname + ".json" else return "/venues.json" initialize: (item) -> if item.name_seo @name_seo = item.name_seo if item.cityname @cityname = item.cityname Collections.Venues = Backbone.Collection.extend model: Models.Venue url: -> if @cityname return "/venues/in-city/" + @cityname + ".json" else return "/venues.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/venues.coffee |