README.md in appjs-rails-1.0.0 vs README.md in appjs-rails-1.0.1

- old
+ new

@@ -1,7 +1,8 @@ # Appjs::Rails [![Gem Version](https://badge.fury.io/rb/appjs-rails.png)](http://badge.fury.io/rb/appjs-rails) +[![Dependency Status](https://gemnasium.com/raglub/appjs-rails.png)](https://gemnasium.com/raglub/appjs-rails) The additional library for javaScript ## Installation @@ -17,21 +18,25 @@ $ gem install appjs-rails ## Usage +The app file will be added to the asset pipeline when you in file ```app/assets/javascripts/application.js``` add this line: + +//= require app + Creation new singleton ```javascript -app._addSingleton('example', function() { +app._singleton.add('example', function() { return { toString: 'Class Example' } } ); app.example.init(); app.example.toString; // 'Class Example' ``` -Generaion UUID +Generation UUID ```javascript app._uuid(); //6b644386-6ccb-98af-1144-6b8de194387a ```