.aasm_state is deprecated and will be removed in version 4.0.0; please use .aasm.state instead!

While uploading photos in OpenStreetView app, my imaging goes on pending state and I got a message in console:

.aasm_state is deprecated and will be removed in version 4.0.0; please use .aasm.state instead!

I have rubyist-aasm-2.1.1 installed on my system. This message actually itself a solution of problem, just rename  .aasm_state to .assm.state. In this way you have to rename all the  aasm variable names.

For this use a patch already submitted in OSV github but never used in restful authentication plugin (because of being inactive from last Four years)

PATCH:

https://github.com/alexandre-mbm/OpenStreetView/blob/9ed8ee0fc283207e857bcb21c02b870d3e19c515/fix_issue_37.patch

Apply this Patch:

patch OpenStreetView/vendor/plugins/restful_authentication/lib/authorization/aasm_roles.rb < fix_issue_37.patch

when you build again after making this changes you will not see any error, but your images will still bi in pending state. To change your state from pending->processing->unavailable:

open another terminal, and type

$script/tools/processor.rb

and keep it  running till you run app.

Advertisements

About Jasleen Kaur

Hi, I am Jasleen kaur, a Computer Science Student.
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s