lib/atome/genesis/generators/communication.rb in atome-0.5.5.8.7 vs lib/atome/genesis/generators/communication.rb in atome-0.5.5.9.1

- old
+ new

@@ -5,15 +5,23 @@ html.connect(params[:server], &bloc) end new({ particle: :message }) do |params, bloc| - params = {message: params } unless params.instance_of? Hash - params[:user]=Universe.current_user - params[:pass]=Black_matter.password + params = { message: params } unless params.instance_of? Hash + params[:user] = Universe.current_user + params[:pass] = Black_matter.password html.send_message(params, &bloc) end new({ particle: :controller }) do |msg| Atome.controller_sender(msg) -end \ No newline at end of file +end + +new({ particle: :int8 }) + +new({ particle: :language }) do |params| + @data = int8[params] + params +end +