Commit 7d65dd8e by liyijie

resource_class columns resuce error use []

parent f1409d6f
...@@ -149,6 +149,8 @@ class SimpleControllerGenerator < Rails::Generators::NamedBase ...@@ -149,6 +149,8 @@ class SimpleControllerGenerator < Rails::Generators::NamedBase
resource_class.columns.map(&:name) - %w(id created_at updated_at) resource_class.columns.map(&:name) - %w(id created_at updated_at)
rescue NameError rescue NameError
[] []
rescue
[]
end end
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment