Sha256: 382a189b715fef211393e45fee0a9aacdffc21a15198b39e082b3f91cdae78cc
Contents?: true
Size: 912 Bytes
Versions: 3
Compression:
Stored size: 912 Bytes
Contents
# Outpost::AssetHost AssetHost integration with Outpost. Dependencies: * Outpost * Backbone, >= 0.9 You should include these dependencies yourself. ## Usage ```ruby class PostAsset < ActiveRecord::Base belongs_to :post end class Post < ActiveRecord::Base has_many :assets, class_name: "PostAsset" accepts_json_input_for_assets end ``` You'll also need to define a `window.assethost` object, with "SERVER" and "TOKEN": ```coffee window.assethost = SERVER: "http://assethost.yourserver.com" TOKEN: "{your assethost key} ``` And include the javascript and stylesheet: ``` //= require outpost/asset_host /* *= require outpost/assets */ ``` ## Contributing 1. Fork it 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`) 4. Push to the branch (`git push origin my-new-feature`) 5. Create new Pull Request
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
outpost-asset_host-1.1.1 | README.md |
outpost-asset_host-1.1.0 | README.md |
outpost-asset_host-1.0.0 | README.md |